diff options
author | Leif Johansson <leifj@sunet.se> | 2014-06-30 11:49:48 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2014-06-30 11:49:48 +0200 |
commit | deff549e038885729868b30c68a12538883c9646 (patch) | |
tree | 26e7ff03a8baf9e3bfd2fff5edb90e23ba7a1dc5 /global/overlay/etc/cron.daily/scriptherder_cleanup | |
parent | a1bc104e5bd63ab896afc92781df6aac6efd90e3 (diff) | |
parent | ecb417e8ce9a1eca586e2169c615c2bd30c938f8 (diff) |
Merge branch 'master' of git.nordu.net:sunet-opssunet-ops-2014-06-30-v02
Diffstat (limited to 'global/overlay/etc/cron.daily/scriptherder_cleanup')
-rwxr-xr-x | global/overlay/etc/cron.daily/scriptherder_cleanup | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/global/overlay/etc/cron.daily/scriptherder_cleanup b/global/overlay/etc/cron.daily/scriptherder_cleanup new file mode 100755 index 0000000..08ec7f5 --- /dev/null +++ b/global/overlay/etc/cron.daily/scriptherder_cleanup @@ -0,0 +1,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 |