[Pkg-nagios-changes] [pkg-nagios] r17 - nagios2/trunk/debian
Marc Haber
zugschlus at costa.debian.org
Tue Dec 20 19:21:43 UTC 2005
Author: zugschlus
Date: 2005-12-20 19:21:43 +0000 (Tue, 20 Dec 2005)
New Revision: 17
Added:
nagios2/trunk/debian/nagios2-common.postinst
Log:
add postinst script creating system user on install. This needs to be
reflected in the default config as well (which is not yet done)
Added: nagios2/trunk/debian/nagios2-common.postinst
===================================================================
--- nagios2/trunk/debian/nagios2-common.postinst 2005-12-20 19:08:52 UTC (rev 16)
+++ nagios2/trunk/debian/nagios2-common.postinst 2005-12-20 19:21:43 UTC (rev 17)
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+if [ "$1" = "configure" ] &&\
+ ! getent passwd Debian-nagios2 > /dev/null ; then
+ echo 'Adding system-user for nagios2' 1>&2
+ adduser --system --group --home /var/run/nagios --no-create-home \
+ --disabled-login --force-badname Debian-nagios2 > /dev/null
+fi
+
+#DEBHELPER#
More information about the Pkg-nagios-changes
mailing list