[scripts] add external script that handles packages cache cleanup (using a simple MRU strategy)

This commit is contained in:
Fabio Erculiani 2012-07-25 12:51:21 +02:00
parent fbcacb5319
commit 53bd2e83d0

6
scripts/cleanup_pkgcache.sh Executable file
View File

@ -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