[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. 99ae9353f6834da0cb73f59f4b32d1f0ae1263fa

Stephen Gran steve at lobefin.net
Thu Sep 4 12:36:57 UTC 2008


The following commit has been merged in the debian/unstable branch:
commit bc5a395f4288f632265d3a98cc5f7c521eebb81c
Author: Stephen Gran <steve at lobefin.net>
Date:   Thu Sep 4 13:25:36 2008 +0100

    Revert "Try a little harder to work around xen-create-image creating users but"
    
    This reverts commit f18730fa5c25a8ce9615ee860345a0318ba45862.

diff --git a/debian/clamav-base.postinst.in b/debian/clamav-base.postinst.in
index a9f1044..be113ca 100644
--- a/debian/clamav-base.postinst.in
+++ b/debian/clamav-base.postinst.in
@@ -40,9 +40,11 @@ case "$1" in
   
   # Set up the clamav user on new install
   if [ -z "$2" ]; then
-    adduser --system --no-create-home --quiet \
+    if [ -z "`getent passwd clamav`" ]; then
+      adduser --system --no-create-home \
         --disabled-password --disabled-login \
 	--shell /bin/false --group --home /var/lib/clamav clamav
+    fi
     chown $user:$user $DATABASEDIR
     chown $user:$user $RUNDIR
     chown $user:$user $LOGDIR

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list