aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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