File: expire-entry

package info (click to toggle)
sitesummary 0.1.60
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 584 kB
  • sloc: perl: 1,929; sh: 800; makefile: 86
file content (17 lines) | stat: -rwxr-xr-x 328 bytes parent folder | download | duplicates (9)
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"