diff options
author | Pierre Habouzit <madcoder@debian.org> | 2008-05-06 18:35:27 +0000 |
---|---|---|
committer | Pierre Habouzit <madcoder@debian.org> | 2008-05-06 18:35:27 +0000 |
commit | 3ee8d73d555315a9a916a2093a20cd0eed161f3b (patch) | |
tree | 9bf7a00fad0fc9d87fc824bca8aad53ea278f82d | |
parent | 4f8f23c9158820a0fc603f62491b1bd965133b4a (diff) | |
download | lighttpd-3ee8d73d555315a9a916a2093a20cd0eed161f3b.tar.gz |
fix alternatives handlingdebian/1.4.19-3
-rw-r--r-- | debian/lighttpd.postinst | 10 | ||||
-rw-r--r-- | debian/lighttpd.prerm | 3 |
2 files changed, 7 insertions, 6 deletions
diff --git a/debian/lighttpd.postinst b/debian/lighttpd.postinst index c23d62e..f8d7423 100644 --- a/debian/lighttpd.postinst +++ b/debian/lighttpd.postinst @@ -10,12 +10,14 @@ if [ "$1" = "configure" ]; then 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# diff --git a/debian/lighttpd.prerm b/debian/lighttpd.prerm index 99b2117..2ba6f93 100644 --- a/debian/lighttpd.prerm +++ b/debian/lighttpd.prerm @@ -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# |