aboutsummaryrefslogtreecommitdiffstats
path: root/debian/sitesummary.cron.daily
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2010-01-06 19:55:28 +0000
committerPetter Reinholdtsen <pere@hungry.com>2010-01-06 19:55:28 +0000
commitde131855f68a0bfd885e9d64bb4131a66bd7f50c (patch)
tree2f844b30c42c1f4d3183fb325f861030de709bd2 /debian/sitesummary.cron.daily
parent2663b94bc3c1d86839d8d71fcb98b9b9e01c782a (diff)
downloadsitesummary-de131855f68a0bfd885e9d64bb4131a66bd7f50c.tar.gz
sitesummary-de131855f68a0bfd885e9d64bb4131a66bd7f50c.tar.bz2
sitesummary-de131855f68a0bfd885e9d64bb4131a66bd7f50c.tar.xz
Implement support for calling hooks when a sitesummary entry is
expired (Closes: #491918).
Diffstat (limited to 'debian/sitesummary.cron.daily')
-rwxr-xr-xdebian/sitesummary.cron.daily4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/sitesummary.cron.daily b/debian/sitesummary.cron.daily
index 777ef03..2cadb39 100755
--- a/debian/sitesummary.cron.daily
+++ b/debian/sitesummary.cron.daily
@@ -31,8 +31,8 @@ entriesdir=/var/lib/sitesummary/entries
remove_old_entries() {
find $entriesdir/. -mindepth 1 -maxdepth 1 -type d \
- -daystart -mtime +$daylimit -print0 |
- xargs -0 -r rm -rf
+ -daystart -mtime +$daylimit \
+ -exec /usr/lib/sitesummary/expire-entry '{}' \;
}
generate_munin_config() {