aboutsummaryrefslogtreecommitdiffstats
path: root/debian/sitesummary.postinst
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2006-08-31 06:44:45 +0000
committerPetter Reinholdtsen <pere@hungry.com>2006-08-31 06:44:45 +0000
commit28d7a9d708c57c9562d7beda57a9dd2965a08ec1 (patch)
tree0041655c21bbf160acdb1d92395d7ac7e52689e6 /debian/sitesummary.postinst
parentad92c7bf67243de34045325f660cd4f8645a4751 (diff)
downloadsitesummary-28d7a9d708c57c9562d7beda57a9dd2965a08ec1.tar.gz
sitesummary-28d7a9d708c57c9562d7beda57a9dd2965a08ec1.tar.bz2
sitesummary-28d7a9d708c57c9562d7beda57a9dd2965a08ec1.tar.xz
* Add daily cron job to update web pages once a day.
* Remove old /etc/apache2/sites-available/sitesummary if it exist, to cope with the new apache config structure introduced version 0.0.6.
Diffstat (limited to 'debian/sitesummary.postinst')
-rw-r--r--debian/sitesummary.postinst11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/sitesummary.postinst b/debian/sitesummary.postinst
new file mode 100644
index 0000000..fad658a
--- /dev/null
+++ b/debian/sitesummary.postinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+# Adjust to the new config location, in /etc/apache2/conf.d/sitesummary
+if [ /etc/apache2/sites-available/sitesummary ]; then
+ a2dissite sitesummary
+ rm /etc/apache2/sites-available/sitesummary
+fi
+
+#DEBHELPER#