added restorecon to systemd prepare-dirs script

refs #8332
This commit is contained in:
Dirk Goetz 2015-03-17 18:51:54 +00:00 committed by Michael Friedrich
parent beeaf9b6e1
commit 5d93b968fe
1 changed files with 3 additions and 0 deletions

View File

@ -47,4 +47,7 @@ fi
mkdir -p $ICINGA2_RUN_DIR/icinga2/cmd
chown $ICINGA2_USER:$ICINGA2_COMMAND_GROUP $ICINGA2_RUN_DIR/icinga2/cmd
if [ $(which restorecon) ]; then
restorecon -R $ICINGA2_RUN_DIR/icinga2/
fi
chmod 2750 $ICINGA2_RUN_DIR/icinga2/cmd