[Pkg-clamav-commits] [SCM] packaging for clamav-unoffical-sigs branch, master, updated. debian/3.3-2-12-g3f3c3be

Paul Wise pabs at debian.org
Sun Jul 5 07:13:07 UTC 2009


The following commit has been merged in the master branch:
commit 3f3c3bed27f36452ce8ce48aa12a1cdd67c7da2c
Author: Paul Wise <pabs at debian.org>
Date:   Sun Jul 5 15:02:08 2009 +0800

    Set strict permissions on the GPG dir to avoid a warning from the script.

diff --git a/debian/postinst b/debian/postinst
index b7bb6b0..17dcff5 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -20,13 +20,18 @@ if [ "$1" = configure ] ; then
 	if [ "x$user" != xroot ] ; then
 
 		# Ensure the directories are all writable for the cron user
-		for dir in "$gpg_dir" "$config_dir" "$ss_dir" "$msrbl_dir" "$si_dir" "$mbl_dir" "$add_dir"; do
+		for dir in "$config_dir" "$ss_dir" "$msrbl_dir" "$si_dir" "$mbl_dir" "$add_dir"; do
 			if ! dpkg-statoverride --list "$dir" > /dev/null 2>&1 ; then
 				dpkg-statoverride --update --add "$user" "$group" 0755 "$dir"
 				chown -f "$user:$group" "$dir/*" || true
 			fi
 		done
 
+		if ! dpkg-statoverride --list "$gpg_dir" > /dev/null 2>&1 ; then
+			dpkg-statoverride --update --add "$user" "$group" 0700 "$gpg_dir"
+			chown -f "$user:$group" "$gpg_dir/*" || true
+		fi
+
 		# Create the log file and make it writable for the cron user
 		if [ ! -e "$log_file_path/$log_file_name" ] ; then
 			touch "$log_file_path/$log_file_name"

-- 
packaging for clamav-unoffical-sigs



More information about the Pkg-clamav-commits mailing list