File: expire-entry

package info (click to toggle)
sitesummary 0.1.17+deb8u3
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 468 kB
  • ctags: 103
  • sloc: perl: 1,742; sh: 787; makefile: 84
file content (17 lines) | stat: -rwxr-xr-x 328 bytes parent folder | download | duplicates (7)
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"