#!/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"