From 5d93b968fea5809c193fa630a5680ef75f0d683d Mon Sep 17 00:00:00 2001 From: Dirk Goetz Date: Tue, 17 Mar 2015 18:51:54 +0000 Subject: [PATCH] added restorecon to systemd prepare-dirs script refs #8332 --- etc/initsystem/prepare-dirs | 3 +++ 1 file changed, 3 insertions(+) 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