copr: prune old per-task-logs daily
The upstream package suggests to prune per-task-logs monthly but with all the mass rebuilds going on right now (@copr/PyPI, @rubygems/rubygems), I think it is safer to prune them daily.
This commit is contained in:
parent
93cf7c27db
commit
5249952c7b
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,8 @@
|
|||
(
|
||||
flock -n 9 || exit 1
|
||||
# ... commands executed under lock ...
|
||||
runuser -c 'find /var/lib/copr-dist-git/per-task-logs -name *.log -mtime +30 -delete' - copr-dist-git
|
||||
|
||||
runuser -c 'prune-dist-git.py --repos /var/lib/dist-git/git/ --lookasidepkgs /var/lib/dist-git/cache/lookaside/pkgs/ --copr-config ~/.config/copr --always-yes' - copr-dist-git
|
||||
|
||||
) 9>/var/lock/copr-dist-git-cron-daily
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue