diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2006-10-05 06:57:52 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2006-10-05 06:57:52 +0000 |
commit | fe8b35d7a1f5bed5dd5bb44aec27cdcd07009423 (patch) | |
tree | 86cb1d732c1a05096ee9ca1bbbbf05a31106e77c /debian | |
parent | a29e9cb7fc5ec24c4e0150f52b02f9058e80d397 (diff) | |
download | sitesummary-fe8b35d7a1f5bed5dd5bb44aec27cdcd07009423.tar.gz sitesummary-fe8b35d7a1f5bed5dd5bb44aec27cdcd07009423.tar.bz2 sitesummary-fe8b35d7a1f5bed5dd5bb44aec27cdcd07009423.tar.xz |
Provide more configuration on the server.
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 2 | ||||
-rwxr-xr-x | debian/sitesummary.cron.daily | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/debian/changelog b/debian/changelog index bab219e..fa07b07 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,7 +1,7 @@ sitesummary (0.0.13~1) unstable; urgency=low * Change server cron job to remove entries after 120 days. - * Make it possible to override this value using + * Make it possible to override server config using /etc/sitesummary/collector.cfg. * Include a timestamp in the simple web report, to document when the web page was last updated. diff --git a/debian/sitesummary.cron.daily b/debian/sitesummary.cron.daily index 21fa686..f82bfda 100755 --- a/debian/sitesummary.cron.daily +++ b/debian/sitesummary.cron.daily @@ -3,11 +3,11 @@ # Author: Petter Reinholdtsen daylimit=120 +entriesdir=/var/lib/sitesummary/entries +makewebreport=/usr/sbin/sitesummary-makewebreport [ -f /etc/sitesummary/collector.cfg ] && . /etc/sitesummary/collector.cfg -entriesdir=/var/lib/sitesummary/entries - remove_old_entries() { find $entriesdir/. -mindepth 1 -maxdepth 1 -type d \ -daystart -mtime +$daylimit -print0 | @@ -17,5 +17,4 @@ remove_old_entries() { [ -d $entriesdir ] && remove_old_entries # Update the web report once a day - -[ -x /usr/sbin/sitesummary-makewebreport ] && nice /usr/sbin/sitesummary-makewebreport +[ -x $makewebreport ] && nice $makewebreport |