Fix group permission in prepare-dirs

fixes #7890

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
This commit is contained in:
Malte Rabenseifner 2014-11-28 19:27:31 +01:00 committed by Gunnar Beutner
parent d19821c900
commit 76d774d396
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ getent group $ICINGA2_GROUP >/dev/null 2>&1 || (echo "Icinga group '$ICINGA2_GRO
getent group $ICINGA2_COMMAND_GROUP >/dev/null 2>&1 || (echo "Icinga command group '$ICINGA2_COMMAND_GROUP' does not exist. Exiting." && exit 6)
mkdir -p $(dirname -- $ICINGA2_PID_FILE)
chown $ICINGA2_USER:$ICINGA2_GROUP $(dirname -- $ICINGA2_PID_FILE)
chown $ICINGA2_USER:$ICINGA2_COMMAND_GROUP $(dirname -- $ICINGA2_PID_FILE)
if [ -f $ICINGA2_PID_FILE ]; then
chown $ICINGA2_USER:$ICINGA2_GROUP $ICINGA2_PID_FILE
fi