aboutsummaryrefslogtreecommitdiffstats
path: root/expire-entry
blob: 6548ed73620ecf4fa00c54bc80b2b37a6e802baa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
#
# Expire an sitesummary entry, calling the expire hooks first and then
# remove the entry.

set -e

entrydir="$1"

logger -t sitesummary "Expiring sitesummary entry in $entrydir"

expiredir=/usr/lib/sitesummary/expire.d
if [ -d "$expiredir" ] ; then
    run-parts --arg="$entrydir" $expiredir
fi

rm -rf "$entrydir"