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:
Jakub Kadlcik 2022-02-13 17:56:15 +01:00
parent 93cf7c27db
commit 5249952c7b

View file

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