]> granicus.if.org Git - icinga2/commitdiff
added restorecon to systemd prepare-dirs script
authorDirk Goetz <dirk.goetz@netways.de>
Tue, 17 Mar 2015 18:51:54 +0000 (18:51 +0000)
committerMichael Friedrich <michael.friedrich@netways.de>
Mon, 1 Jun 2015 11:25:58 +0000 (13:25 +0200)
refs #8332

etc/initsystem/prepare-dirs

index dadf04925b4a27fa2cf5a19523384aeb2c15760b..5e36f10dbe05eb125f0295d14586a9ee0ba41af8 100644 (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