[Pkg-voip-commits] r1736 - siproxd/trunk/debian

Kilian Krause kilian at costa.debian.org
Sun May 7 14:48:05 UTC 2006


Author: kilian
Date: 2006-05-07 14:48:05 +0000 (Sun, 07 May 2006)
New Revision: 1736

Modified:
   siproxd/trunk/debian/changelog
   siproxd/trunk/debian/siproxd.postinst
Log:
fix #326835 with new upload


Modified: siproxd/trunk/debian/changelog
===================================================================
--- siproxd/trunk/debian/changelog	2006-05-07 14:42:55 UTC (rev 1735)
+++ siproxd/trunk/debian/changelog	2006-05-07 14:48:05 UTC (rev 1736)
@@ -4,8 +4,9 @@
     build-depends installed.
     Remove linking against gcc_s to fix FTBFS.
   * Remove amd64.diff from debian/patches/series; ack previous NMU
+  * Only fix permissions on config files if exist (Closes: #326835)
 
- -- Kilian Krause <kilian at debian.org>  Sun,  7 May 2006 14:40:44 +0000
+ -- Kilian Krause <kilian at debian.org>  Sun,  7 May 2006 14:45:49 +0000
 
 siproxd (1:0.5.11-1.1) unstable; urgency=low
 

Modified: siproxd/trunk/debian/siproxd.postinst
===================================================================
--- siproxd/trunk/debian/siproxd.postinst	2006-05-07 14:42:55 UTC (rev 1735)
+++ siproxd/trunk/debian/siproxd.postinst	2006-05-07 14:48:05 UTC (rev 1736)
@@ -11,8 +11,8 @@
         fi
 
 	if dpkg --compare-versions "$2" le "0.57.snap040720-2"; then
-	    chown root:siproxd /etc/siproxd.conf /etc/siproxd_passwd.cfg
-	    chmod 600 /etc/siproxd_passwd.cfg 
+	    [ -e /etc/siproxd.conf -a -e /etc/siproxd_passwd.cfg ] && chown root:siproxd /etc/siproxd.conf /etc/siproxd_passwd.cfg
+	    [ -e /etc/siproxd_passwd.cfg ] && chmod 600 /etc/siproxd_passwd.cfg 
 	fi
 	;;
 	
@@ -23,7 +23,7 @@
 # Bad naming f0llowing the exim4 example ;)
 install -d -o siproxd -g siproxd /var/lib/siproxd/var/lib/siproxd
 chown -R siproxd:siproxd /var/lib/siproxd
+mkdir -p /var/run/siproxd
 chown siproxd:siproxd /var/run/siproxd
 
-
 #DEBHELPER#




More information about the Pkg-voip-commits mailing list