[Pkg-nagios-changes] [pkg-icingaweb2] 01/04: Re-add www-data to icingaweb2 group

Alexander Wirt formorer at debian.org
Sun Jul 17 08:11:16 UTC 2016


This is an automated email from the git hooks/post-receive script.

formorer pushed a commit to branch master
in repository pkg-icingaweb2.

commit a7f069b24a2da4bd48f60899b252dfb32079edc6
Author: Alexander Wirt <formorer at debian.org>
Date:   Sun Jul 17 09:32:53 2016 +0200

    Re-add www-data to icingaweb2 group
    
    Closes: #831530
---
 debian/icingaweb2-common.postinst | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/icingaweb2-common.postinst b/debian/icingaweb2-common.postinst
index 683d31a..c6b82f1 100644
--- a/debian/icingaweb2-common.postinst
+++ b/debian/icingaweb2-common.postinst
@@ -21,7 +21,10 @@ case "$1" in
             echo 'Adding system-group for icingaweb2' 1>&2
             addgroup --system icingaweb2 >/dev/null
         fi
-
+        # allow www-data to write icingaweb2 config
+        if ! getent group icingaweb2 | grep -q www-data; then
+            adduser www-data icingaweb2
+        fi
         # secure configuration directory and allow config access
         setperm root icingaweb2 2770 /etc/icingaweb2
     ;;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-icingaweb2.git



More information about the Pkg-nagios-changes mailing list