aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2006-12-09 14:39:17 +0000
committerPetter Reinholdtsen <pere@hungry.com>2006-12-09 14:39:17 +0000
commitde477d22e623eeb6a6d960ae5e4d2566d1ef7dbd (patch)
tree6aaf7bd362dd4e489337fbaf2a4913d681a9a0b1
parentd5551b1685882a9ef000269aa39a7e72f16fd2c2 (diff)
parent083f362f83dd690ef3be2b3afbdf2607558b080e (diff)
downloadsitesummary-0.0.20.tar.gz
sitesummary-0.0.20.tar.bz2
sitesummary-0.0.20.tar.xz
tagging version 0.0.200.0.20
-rw-r--r--debian/changelog1
-rw-r--r--debian/sitesummary.postinst7
2 files changed, 6 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index fad20b9..f73c5b5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,7 @@ sitesummary (0.0.20) unstable; urgency=low
eth0 isn't usable.
* Throw away error messages from dmidecode when collecting info, to
avoid daily cron mails from Xen machines.
+ * Only use a2dissite to disable the site if it is enabled.
-- Petter Reinholdtsen <pere@debian.org> Sat, 9 Dec 2006 15:28:23 +0100
diff --git a/debian/sitesummary.postinst b/debian/sitesummary.postinst
index 7a77533..fefb38f 100644
--- a/debian/sitesummary.postinst
+++ b/debian/sitesummary.postinst
@@ -3,8 +3,11 @@
set -e
# Adjust to the new config location, in /etc/apache2/conf.d/sitesummary
-if [ -f /etc/apache2/sites-available/sitesummary ]; then
- [ -x /usr/sbin/a2dissite ] && a2dissite sitesummary
+if [ -f /etc/apache2/sites-available/sitesummary ] ; then
+ if [ -f /etc/apache2/sites-enabled//sitesummary ] &&
+ [ -x /usr/sbin/a2dissite ] ; then
+ a2dissite sitesummary
+ fi
rm /etc/apache2/sites-available/sitesummary
fi