[Logcheck-commits] r1520 - logcheck/trunk/debian
madduck at users.alioth.debian.org
madduck at users.alioth.debian.org
Wed Feb 28 12:20:57 CET 2007
Author: madduck
Date: 2007-02-28 12:20:56 +0100 (Wed, 28 Feb 2007)
New Revision: 1520
Modified:
logcheck/trunk/debian/changelog
logcheck/trunk/debian/logcheck.postinst
Log:
* Make sure the logcheck group actually exists. Thanks, Jordi.
Modified: logcheck/trunk/debian/changelog
===================================================================
--- logcheck/trunk/debian/changelog 2007-02-28 11:15:22 UTC (rev 1519)
+++ logcheck/trunk/debian/changelog 2007-02-28 11:20:56 UTC (rev 1520)
@@ -3,6 +3,8 @@
* Actually install README.backports.gz to /usr/share/doc/logcheck
(closes: #411021).
+ * Make sure the logcheck group actually exists. Thanks, Jordi.
+
* violations.ignore.d/logcheck-passwd:
- ignore PAM warnings on authentication failures.
@@ -64,7 +66,7 @@
* debconf translation updates:
- Portuguese by Pedro Ribeiro (closes: #410734).
- -- martin f. krafft <madduck at debian.org> Wed, 28 Feb 2007 12:15:00 +0100
+ -- martin f. krafft <madduck at debian.org> Wed, 28 Feb 2007 12:20:13 +0100
logcheck (1.2.54) unstable; urgency=low
Modified: logcheck/trunk/debian/logcheck.postinst
===================================================================
--- logcheck/trunk/debian/logcheck.postinst 2007-02-28 11:15:22 UTC (rev 1519)
+++ logcheck/trunk/debian/logcheck.postinst 2007-02-28 11:20:56 UTC (rev 1520)
@@ -33,6 +33,12 @@
touch /etc/cron.d/logcheck || true
fi
+ # check for logcheck group in case account exists without group
+ if ! getent group logcheck >/dev/null; then
+ addgroup --system logcheck
+ usermod -g logcheck logcheck
+ fi
+
# make sure the home directory exists
if [ ! -d "$(getent passwd logcheck | cut -d: -f6)" ]; then
usermod -d /var/lib/logcheck logcheck > /dev/null || true
More information about the Logcheck-commits
mailing list