[Pkg-clamav-commits] [SCM] packaging for clamav-unoffical-sigs branch, master, updated. debian/3.7.1-4-1-g06053d5

Paul Wise pabs at debian.org
Wed Jul 10 05:51:28 UTC 2013


The following commit has been merged in the master branch:
commit 06053d55d326ca2c9c411bfb7e46c51824d2ee77
Author: Paul Wise <pabs at debian.org>
Date:   Wed Jul 10 13:51:03 2013 +0800

    Deal with the situation where the user disabled the cron job (Closes: #711161)

diff --git a/debian/changelog b/debian/changelog
index 22a14b5..3536f85 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+clamav-unofficial-sigs (3.7.1-5) UNRELEASED; urgency=low
+
+  * Deal with the situation where the user disabled the cron job (Closes: #711161)
+
+ -- Paul Wise <pabs at debian.org>  Wed, 10 Jul 2013 13:50:09 +0800
+
 clamav-unofficial-sigs (3.7.1-4) unstable; urgency=low
 
   * Point the homepage/watch at sourceforge since the domain expired.
diff --git a/debian/postinst b/debian/postinst
index c526e6f..3aacd67 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -15,9 +15,9 @@ if [ "$1" = configure ] ; then
 	# Detect which user the script will run from
 	# Will be 'clamav' unless the user customised the cron script
 	user="$(grep '^[^#]\+$' /etc/cron.d/clamav-unofficial-sigs | cut -d ' '  -f 6)"
-	group="$(id -ng "$user")"
 
-	if [ "x$user" != xroot ] ; then
+	if [ "x$user" != x -a "x$user" != xroot ] ; then
+		group="$(id -ng "$user")"
 
 		# Ensure the directories are all writable for the cron user
 		for dir in "$config_dir" "$ss_dir" "$msrbl_dir" "$si_dir" "$mbl_dir" "$add_dir"; do

-- 
packaging for clamav-unoffical-sigs



More information about the Pkg-clamav-commits mailing list