diff --git a/scripts/cleanup_pkgcache.sh b/scripts/cleanup_pkgcache.sh new file mode 100755 index 0000000..57bf129 --- /dev/null +++ b/scripts/cleanup_pkgcache.sh @@ -0,0 +1,6 @@ +#!/bin/sh +# Remove tarballs not accessed in the last 30 days +# concurrency wrt scripts is handled in crontab + +DIR="/sabayon/pkgcache" +find "${DIR}" -atime +30 -type f -delete