fix permission conflicts for RUN_DIR

Signed-off-by: Guy Meyer <gmeyer@ripe.net>
This commit is contained in:
Guy Meyer
2022-03-22 11:55:50 +01:00
parent cbb3c23c11
commit a9bd9d295e
2 changed files with 3 additions and 1 deletions
@@ -45,6 +45,7 @@ REG_SERVERS_SOURCE=$RPM_ETC_DIR/reg_servers.sh
chmod_for_msm()
{
chmod -R g+rwX $BASE_DIR/data
chmod -R g+rw $RUN_DIR
}
# Get ethernet address
@@ -132,7 +132,8 @@ mkdir -p %{atlas_probe}/data/out/ooq10
chown -R atlas:atlas %{atlas_probe}/data
chmod -R g+rwx %{atlas_probe}/data
mkdir -p %{atlas_probe}/run
chown atlas:atlas %{atlas_probe}/run
chown -R atlas:atlas %{atlas_probe}/run
chmod -R g+rw %{atlas_probe}/run
%if 0%{?el7} || 0%{?el8}
systemctl --now --quiet enable atlas
systemctl --now --quiet start atlas