[Pkg-voip-commits] r4201 - asterisk/trunk/debian

paravoid at alioth.debian.org paravoid at alioth.debian.org
Wed Aug 22 15:50:36 UTC 2007


Author: paravoid
Date: 2007-08-22 15:50:36 +0000 (Wed, 22 Aug 2007)
New Revision: 4201

Modified:
   asterisk/trunk/debian/asterisk.postinst
Log:
Honor dpkg-statoverride for /etc/asterisk and place a comment to explain the difference from the other directories

Modified: asterisk/trunk/debian/asterisk.postinst
===================================================================
--- asterisk/trunk/debian/asterisk.postinst	2007-08-22 15:14:14 UTC (rev 4200)
+++ asterisk/trunk/debian/asterisk.postinst	2007-08-22 15:50:36 UTC (rev 4201)
@@ -41,6 +41,15 @@
 			chown asterisk: $dir
 		fi
 	done 
+	
+	# this is not needed for new installations but is not such a bad idea
+	# removing this will _break_ upgrades from versions < 1:1.4.10.1~dfsg-1
+	#
+	# we are doing the same for subdirectories, since we are not shipping
+	# any and it's supposed to be user-modifiable
+	if ! dpkg-statoverride --list "/etc/asterisk" > /dev/null ; then
+		chown asterisk: /etc/asterisk
+	fi
 
 	# spool holds some sensitive information (e.g. monitor, voicemail etc.)
 	find /var/spool/asterisk -type d | while read dir; do
@@ -66,10 +75,6 @@
 	while read conffile; do
 		chown asterisk: ${conffile} 2>/dev/null
 	done
-	
-	# this is not needed for new installations but is not such a bad idea
-	# removing this will _break_ upgrades from versions < 1:1.4.10.1~dfsg-1
-	chown asterisk: /etc/asterisk
 
 	set -e
     ;;




More information about the Pkg-voip-commits mailing list