mirror of https://github.com/Icinga/icinga2.git
Fix group permission in prepare-dirs
fixes #7890 Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
This commit is contained in:
parent
d19821c900
commit
76d774d396
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue