[scripts] add external script that handles packages cache cleanup (using a simple MRU strategy)
This commit is contained in:
parent
fbcacb5319
commit
53bd2e83d0
6
scripts/cleanup_pkgcache.sh
Executable file
6
scripts/cleanup_pkgcache.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user