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

paravoid at alioth.debian.org paravoid at alioth.debian.org
Tue Aug 21 05:35:02 UTC 2007


Author: paravoid
Date: 2007-08-21 05:35:02 +0000 (Tue, 21 Aug 2007)
New Revision: 4181

Modified:
   asterisk/trunk/debian/asterisk.postinst
   asterisk/trunk/debian/changelog
Log:
  - Don't add asterisk user to audio and dialout groups if existed before.
    This allows the administrator to remove the membership.

Modified: asterisk/trunk/debian/asterisk.postinst
===================================================================
--- asterisk/trunk/debian/asterisk.postinst	2007-08-21 05:30:15 UTC (rev 4180)
+++ asterisk/trunk/debian/asterisk.postinst	2007-08-21 05:35:02 UTC (rev 4181)
@@ -21,14 +21,14 @@
 			--no-create-home --disabled-login \
 			--gecos "Asterisk PBX daemon" \
 			asterisk
+
+		for group in dialout audio; do
+			if groups asterisk | grep -w -q -v $group; then
+				adduser asterisk $group
+			fi
+		done
 	fi 
 
-	for group in dialout audio; do
-		if groups asterisk | grep -w -q -v $group; then
-			adduser asterisk $group
-		fi
-	done
-
 	# chown asterisk on all $dirs and their subdirectories
 	# do not harm the files, they should be empty on new installations
 	# and we don't want to mess-up anything on old installations

Modified: asterisk/trunk/debian/changelog
===================================================================
--- asterisk/trunk/debian/changelog	2007-08-21 05:30:15 UTC (rev 4180)
+++ asterisk/trunk/debian/changelog	2007-08-21 05:35:02 UTC (rev 4181)
@@ -35,6 +35,8 @@
     - Honor dpkg-statoverride on all the chowned/chmoded directories.
     - Handle asterisk-config -> asterisk installation order properly
       (Closes: #408708)
+    - Don't add asterisk user to audio and dialout groups if existed before.
+      This allows the administrator to remove the membership.
     - Don't depend on adduser from asterisk-config.
   * Remove Suggests to gnomemeeting (it's a dummy package nowdays),
     asterisk-rate-engine and add one for twinkle.
@@ -49,7 +51,7 @@
   * Remove -XCVS from dh_installexamples arguments. Upstream doesn't use CVS
     anymore.
 
- -- Faidon Liambotis <paravoid at debian.org>  Mon, 20 Aug 2007 07:46:41 +0300
+ -- Faidon Liambotis <paravoid at debian.org>  Tue, 21 Aug 2007 08:33:43 +0300
 
 asterisk (1:1.4.10~dfsg-1) unstable; urgency=low
 




More information about the Pkg-voip-commits mailing list