From 28d7a9d708c57c9562d7beda57a9dd2965a08ec1 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Thu, 31 Aug 2006 06:44:45 +0000 Subject: * 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. --- debian/changelog | 8 ++++++++ debian/sitesummary.cron.daily | 5 +++++ debian/sitesummary.postinst | 11 +++++++++++ 3 files changed, 24 insertions(+) create mode 100755 debian/sitesummary.cron.daily create mode 100644 debian/sitesummary.postinst (limited to 'debian') 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 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# -- cgit v1.2.3