aboutsummaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--debian/changelog8
-rwxr-xr-xdebian/sitesummary.cron.daily5
-rw-r--r--debian/sitesummary.postinst11
3 files changed, 24 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 1d39444..7306718 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+sitesummary (0.0.7) UNRELEASED; urgency=low
+
+ * 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.
+
+ -- Petter Reinholdtsen <pere@debian.org> Thu, 31 Aug 2006 08:43:19 +0200
+
sitesummary (0.0.6) terra; urgency=low
[ Petter Reinholdtsen ]
diff --git a/debian/sitesummary.cron.daily b/debian/sitesummary.cron.daily
new file mode 100755
index 0000000..ca37ce5
--- /dev/null
+++ b/debian/sitesummary.cron.daily
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# Update the web report once a day
+
+[ -x /usr/sbin/sitesummary-makewebreport ] && nice /usr/sbin/sitesummary-makewebreport
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#