aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2009-09-01 21:22:55 +0000
committerPetter Reinholdtsen <pere@hungry.com>2009-09-01 21:22:55 +0000
commit345ace572edaade2b58f07e7356f189d3a0cdd1e (patch)
treebf1d75566bd84d0eef4f4906e613412f311672fe
parentf5f6d16f5a7e20121b829e5d334ad3f6c5134876 (diff)
downloadsitesummary-345ace572edaade2b58f07e7356f189d3a0cdd1e.tar.gz
sitesummary-345ace572edaade2b58f07e7356f189d3a0cdd1e.tar.bz2
sitesummary-345ace572edaade2b58f07e7356f189d3a0cdd1e.tar.xz
Add code to get rid of unwanted stop symlinks in runlevels 0, 1 and 6.
-rw-r--r--debian/sitesummary.postinst5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/sitesummary.postinst b/debian/sitesummary.postinst
index e720788..b013708 100644
--- a/debian/sitesummary.postinst
+++ b/debian/sitesummary.postinst
@@ -37,6 +37,11 @@ case "$1" in
[ -f /var/lib/sitesummary/www/index.html ] || \
/etc/cron.daily/sitesummary
+ # Get rid of incorrect runlevel settings during upgrades
+ if dpkg --compare-versions "$2" lt "0.0.50"; then
+ update-rc.d -f sitesummary-client remove >/dev/null 2>&1 || :
+ fi
+
;;
abort-upgrade|abort-remove|abort-deconfigure)