From d72b5db3e3a7cf519942cda2d9d7650fa7611df0 Mon Sep 17 00:00:00 2001 From: Silvie Chlupova Date: Mon, 14 Feb 2022 12:07:18 +0100 Subject: [PATCH] copr: update copr-dit-git.monthly to contain all copr dist-git cron jobs --- roles/copr/dist_git/files/copr-dist-git.monthly | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/copr/dist_git/files/copr-dist-git.monthly b/roles/copr/dist_git/files/copr-dist-git.monthly index a9375d4a56..dcca18e845 100644 --- a/roles/copr/dist_git/files/copr-dist-git.monthly +++ b/roles/copr/dist_git/files/copr-dist-git.monthly @@ -1,3 +1,12 @@ #!/usr/bin/bash +runuser -c 'find /var/lib/copr-dist-git/per-task-logs -name *.log -mtime +30 -delete' - copr-dist-git +# WARNING: Destructive option! +# When you uncomment this, all the sources from the dist-git lookaside cache +# will be periodically unlinked, except for those sources mentioned in the +# last commits of the git repo branches. runuser -c 'dist-git-clear-tarballs.py' - copr-dist-git + +# From time to time assure that the CGIT caches are consistent, and that the +# ownership of cache files is correct (run this as root). +/usr/bin/copr-dist-git-refresh-cgit