Code

postinst: Create the nagios user with the same settings as in nagios3-common.
[pkg-pnp4nagios.git] / debian / postinst
index 3ed650dae4b66c64997ac61f802692457c4b9a86..a9c3e82fcb663304af8f0163b42ad77165cbc6ef 100644 (file)
@@ -34,8 +34,8 @@ case "$1" in
        configure)
                if ! getent passwd nagios > /dev/null ; then
                        echo 'Adding system-user for nagios' 1>&2
-                       adduser --system --group --home /var/run/nagios3 --no-create-home \
-                       --disabled-login --force-badname nagios > /dev/null
+                       adduser --system --group --home /var/lib/nagios \
+                               --disabled-login --force-badname nagios > /dev/null
                fi
                setperm nagios www-data 750 /var/lib/pnp4nagios
                setperm nagios nagios   755 /var/lib/pnp4nagios/perfdata