From 76d774d39625bb168ec0f6f34d3e5e48d357ead3 Mon Sep 17 00:00:00 2001 From: Malte Rabenseifner Date: Fri, 28 Nov 2014 19:27:31 +0100 Subject: [PATCH] Fix group permission in prepare-dirs fixes #7890 Signed-off-by: Gunnar Beutner --- etc/initsystem/prepare-dirs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/initsystem/prepare-dirs b/etc/initsystem/prepare-dirs index 5317da766..dadf04925 100644 --- a/etc/initsystem/prepare-dirs +++ b/etc/initsystem/prepare-dirs @@ -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