[Pkg-net-snmp-commits] r293 - branches/net-snmp54/debian branches/net-snmp54-dev/debian trunk/debian

Jochen Friedrich jochen at alioth.debian.org
Fri Nov 6 17:14:44 UTC 2009


Author: jochen
Date: 2009-11-06 17:14:44 +0000 (Fri, 06 Nov 2009)
New Revision: 293

Modified:
   branches/net-snmp54-dev/debian/snmpd.postinst
   branches/net-snmp54/debian/snmpd.postinst
   trunk/debian/snmpd.postinst
Log:
Fix upgrade breakage introduced in R286


Modified: branches/net-snmp54/debian/snmpd.postinst
===================================================================
--- branches/net-snmp54/debian/snmpd.postinst	2009-11-06 15:16:42 UTC (rev 292)
+++ branches/net-snmp54/debian/snmpd.postinst	2009-11-06 17:14:44 UTC (rev 293)
@@ -3,6 +3,9 @@
 set -e
 
 if [ "x$1" = xconfigure ]; then
+	if [ ! `getent group snmp >/dev/null` ]; then
+		 deluser --quiet --system snmp
+	fi
 	adduser --quiet --system --group --no-create-home --home /var/lib/snmp snmp
 	chown -R snmp:snmp /var/lib/snmp
 fi

Modified: branches/net-snmp54-dev/debian/snmpd.postinst
===================================================================
--- branches/net-snmp54-dev/debian/snmpd.postinst	2009-11-06 15:16:42 UTC (rev 292)
+++ branches/net-snmp54-dev/debian/snmpd.postinst	2009-11-06 17:14:44 UTC (rev 293)
@@ -3,6 +3,9 @@
 set -e
 
 if [ "x$1" = xconfigure ]; then
+	if [ ! `getent group snmp >/dev/null` ]; then
+		 deluser --quiet --system snmp
+	fi
 	adduser --quiet --system --group --no-create-home --home /var/lib/snmp snmp
 	chown -R snmp:snmp /var/lib/snmp
 fi

Modified: trunk/debian/snmpd.postinst
===================================================================
--- trunk/debian/snmpd.postinst	2009-11-06 15:16:42 UTC (rev 292)
+++ trunk/debian/snmpd.postinst	2009-11-06 17:14:44 UTC (rev 293)
@@ -3,6 +3,9 @@
 set -e
 
 if [ "x$1" = xconfigure ]; then
+	if [ ! `getent group snmp >/dev/null` ]; then
+		 deluser --quiet --system snmp
+	fi
 	adduser --quiet --system --group --no-create-home --home /var/lib/snmp snmp
 	chown -R snmp:snmp /var/lib/snmp
 fi




More information about the Pkg-net-snmp-commits mailing list