diff --git a/etc/initsystem/prepare-dirs b/etc/initsystem/prepare-dirs index dadf04925..5e36f10db 100644 --- a/etc/initsystem/prepare-dirs +++ b/etc/initsystem/prepare-dirs @@ -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