summaryrefslogtreecommitdiff
path: root/global/overlay/etc/cron.daily/scriptherder_cleanup
blob: 08ec7f515f405026b7cccb74c1a5fa35680f76f3 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
#
# Remove scriptherder data older than 7 days.
#

DIR="/var/cache/scriptherder/"

test -d ${DIR} || exit 0

find ${DIR} -type f -mtime +7 -print0 | xargs -0 rm -f