debian-mirror-gitlab/scripts/clean-old-cached-assets

7 lines
250 B
Text
Raw Normal View History

2019-03-02 22:35:43 +05:30
#!/bin/bash
2019-09-04 21:01:54 +05:30
# Clean up cached files that are older than 4 days
find tmp/cache/assets/sprockets/ -type f -mtime +4 -execdir rm -- "{}" \;
2019-03-02 22:35:43 +05:30
du -d 0 -h tmp/cache/assets/sprockets | cut -f1 | xargs -I % echo "tmp/cache/assets/sprockets/ is currently %"