[Logcheck-commits] CVS logcheck/debian

CVS User maks-guest logcheck-devel at lists.alioth.debian.org
Thu Feb 23 22:03:03 UTC 2006


Update of /cvsroot/logcheck/logcheck/debian
In directory haydn:/tmp/cvs-serv10639/debian

Modified Files:
	changelog logcheck.postinst logcheck.postrm 
Log Message:


don't hide errors in postrm and postinst, they are annoying to debug.
use quiet for the deluser invocation. the usermod case is seems very rare, so..
-> http://lists.debian.org/debian-devel/2006/02/msg00035.html
i'm pretty sure we were regularly hit by this cases.

please use dch(1) for the debian/changelog, makes it easier for all :)


--- /cvsroot/logcheck/logcheck/debian/changelog	2006/02/19 14:50:34	1.554
+++ /cvsroot/logcheck/logcheck/debian/changelog	2006/02/23 22:03:02	1.555
@@ -4,7 +4,11 @@
   * Add kernel rules for 'Device not ready' and 'BIOS EDD' messages.
     (Closes: #353510)
 
- --
+  [ maximilian attems ]
+  * debian/logcheck.postrm, debian/logcheck.postinst: Don't hide errors
+    in postinst.
+
+ -- maximilian attems <maks at sternwelten.at>  Thu, 23 Feb 2006 22:56:21 +0100
 
 logcheck (1.2.43a) unstable; urgency=low
 
--- /cvsroot/logcheck/logcheck/debian/logcheck.postinst	2006/02/19 13:52:26	1.44
+++ /cvsroot/logcheck/logcheck/debian/logcheck.postinst	2006/02/23 22:03:03	1.45
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $Id: logcheck.postinst,v 1.44 2006/02/19 13:52:26 ttroxell Exp $
+# $Id: logcheck.postinst,v 1.45 2006/02/23 22:03:03 maks-guest Exp $
 
 set -e
 
@@ -34,7 +34,7 @@
 	  adduser --quiet --system --no-create-home --group logcheck ||true
 	  touch /etc/cron.d/logcheck || true
     	elif dpkg --compare-versions "$2" eq 1.2.19; then
-	   usermod -d /var/lib/logcheck logcheck > /dev/null 2>&1 || true
+	   usermod -d /var/lib/logcheck logcheck > /dev/null || true
 	fi
 	# check for logcheck in adm group
 	if ! getent group adm | grep logcheck > /dev/null; then
@@ -99,7 +99,7 @@
           chmod 2750 /etc/logcheck/violations.ignore.d || true
     	  chmod -R g+rX /etc/logcheck || true
           # just in case
-          chown logcheck /var/lock/logcheck > /dev/null 2>&1 || true
+          chown logcheck /var/lock/logcheck > /dev/null || true
 	fi
 
 	;;
--- /cvsroot/logcheck/logcheck/debian/logcheck.postrm	2006/02/16 17:33:34	1.7
+++ /cvsroot/logcheck/logcheck/debian/logcheck.postrm	2006/02/23 22:03:03	1.8
@@ -24,7 +24,7 @@
 	    rm -r /var/lib/logcheck
 	fi
 	# remove user and group
-	deluser --remove-home logcheck > /dev/null 2>&1 || true
+	deluser --quiet --remove-home logcheck > /dev/null || true
 	# remove header
 	if [ -e /etc/logcheck/header.txt ]; then
 	    rm -f /etc/logcheck/header.txt



More information about the Logcheck-commits mailing list