[Logcheck-commits] r1412 - logcheck/trunk/debian

madduck at users.alioth.debian.org madduck at users.alioth.debian.org
Thu Dec 28 12:27:58 CET 2006


Author: madduck
Date: 2006-12-28 12:27:57 +0100 (Thu, 28 Dec 2006)
New Revision: 1412

Modified:
   logcheck/trunk/debian/changelog
   logcheck/trunk/debian/logcheck.postinst
Log:
* Assign a real name to the logcheck system user, unless the real name GECOS
  field is not empty (closes: #402800).

Modified: logcheck/trunk/debian/changelog
===================================================================
--- logcheck/trunk/debian/changelog	2006-12-28 11:20:26 UTC (rev 1411)
+++ logcheck/trunk/debian/changelog	2006-12-28 11:27:57 UTC (rev 1412)
@@ -61,8 +61,10 @@
   * Added Spanish debconf translation by Javier Fernández-Sanguino
     (closes: #402204).
   * Do not source debconf confmodule in preinst as it's not needed.
+  * Assign a real name to the logcheck system user, unless the real name GECOS
+    field is not empty (closes: #402800).
 
- -- martin f. krafft <madduck at debian.org>  Thu, 28 Dec 2006 12:19:44 +0100
+ -- martin f. krafft <madduck at debian.org>  Thu, 28 Dec 2006 12:27:23 +0100
 
 logcheck (1.2.51) unstable; urgency=medium
 

Modified: logcheck/trunk/debian/logcheck.postinst
===================================================================
--- logcheck/trunk/debian/logcheck.postinst	2006-12-28 11:20:26 UTC (rev 1411)
+++ logcheck/trunk/debian/logcheck.postinst	2006-12-28 11:27:57 UTC (rev 1412)
@@ -46,6 +46,11 @@
     fi
 	fi
 
+  # give logcheck system user a real name unless it has one.
+  if [ -z "$(getent passwd logcheck | cut -d: -f5)" ]; then
+    chfn -f 'Logcheck system user' logcheck
+  fi
+
 	# Remove unused old directory on upgrade
 	if [ -n "$2" ] && dpkg --compare-versions "$2" lt "1.2.25"; then
 	    if [ -d /var/state/logcheck ]; then




More information about the Logcheck-commits mailing list