summaryrefslogtreecommitdiff
path: root/debian/lighttpd.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/lighttpd.postinst')
-rw-r--r--debian/lighttpd.postinst8
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/lighttpd.postinst b/debian/lighttpd.postinst
index 07401e4..6bfed29 100644
--- a/debian/lighttpd.postinst
+++ b/debian/lighttpd.postinst
@@ -8,6 +8,14 @@ if [ "$1" = "configure" ]; then
then
cp /usr/share/lighttpd/index.html /var/www/index.lighttpd.html
fi
+
+ # Remove a possibly dangling symlink for the obsolete conffile
+ if dpkg --compare-versions "$2" lt-nl "1.4.32-1" && \
+ [ -L /etc/lighttpd/conf-enabled/10-access.conf -a \
+ ! -f /etc/lighttpd/conf-available/10-access.conf ]; then
+ rm -f /etc/lighttpd/conf-enabled/10-access.conf
+ fi
+
fi
# dh_installinit will call this function upon failure of rc.d invocation