From: Dirk Goetz Date: Tue, 17 Mar 2015 18:51:54 +0000 (+0000) Subject: added restorecon to systemd prepare-dirs script X-Git-Tag: v2.4.0~639 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d93b968fea5809c193fa630a5680ef75f0d683d;p=icinga2 added restorecon to systemd prepare-dirs script refs #8332 --- 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