[pkg-lighttpd] r333 - lighttpd/trunk/debian

madcoder at alioth.debian.org madcoder at alioth.debian.org
Tue May 6 18:35:28 UTC 2008


Author: madcoder
Date: 2008-05-06 18:35:27 +0000 (Tue, 06 May 2008)
New Revision: 333

Modified:
   lighttpd/trunk/debian/lighttpd.postinst
   lighttpd/trunk/debian/lighttpd.prerm
Log:
fix alternatives handling

Modified: lighttpd/trunk/debian/lighttpd.postinst
===================================================================
--- lighttpd/trunk/debian/lighttpd.postinst	2008-05-06 18:13:03 UTC (rev 332)
+++ lighttpd/trunk/debian/lighttpd.postinst	2008-05-06 18:35:27 UTC (rev 333)
@@ -10,12 +10,14 @@
 	chown www-data:www-data /var/log/lighttpd /var/run/lighttpd
         chown www-data:www-data /var/cache/lighttpd /var/cache/lighttpd/compress /var/cache/lighttpd/uploads
 	chmod 0750 /var/log/lighttpd /var/run/lighttpd
+
 fi
 
-update-alternatives --quiet --install \
-    /usr/bin/spawn-fcgi spawn-fcgi /usr/bin/spawn-fcgi.lighttpd 20
-update-alternatives --quiet --install \
-    /usr/share/man/man1/spawn-fcgi.1.gz spawn-fcgi.1.gz /usr/share/man/man1/spawn-fcgi.lighttpd.1.gz 20
+update-alternatives \
+    --install /usr/bin/spawn-fcgi \
+        spawn-fcgi /usr/bin/spawn-fcgi.lighttpd 20 \
+    --slave /usr/share/man/man1/spawn-fcgi.1.gz \
+        spawn-fcgi.1.gz /usr/share/man/man1/spawn-fcgi.lighttpd.1.gz
 
 #DEBHELPER#
 

Modified: lighttpd/trunk/debian/lighttpd.prerm
===================================================================
--- lighttpd/trunk/debian/lighttpd.prerm	2008-05-06 18:13:03 UTC (rev 332)
+++ lighttpd/trunk/debian/lighttpd.prerm	2008-05-06 18:35:27 UTC (rev 333)
@@ -1,8 +1,7 @@
 #!/bin/sh -e
 
 if test "$1" != "upgrade"; then
-    update-alternatives --quiet --remove spawn-fcgi /usr/bin/spawn-fcgi.lighttpd
-    update-alternatives --quiet --remove spawn-fcgi.1.gz /usr/share/man/man1/spawn-fcgi.lighttpd.1.gz
+    update-alternatives --remove spawn-fcgi /usr/bin/spawn-fcgi.lighttpd
 fi
 
 #DEBHELPER#




More information about the pkg-lighttpd-maintainers mailing list