mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-01 14:02:12 +08:00
17 lines
676 B
Bash
17 lines
676 B
Bash
#!/usr/bin/bash
|
|
|
|
# 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.
|
|
|
|
# We run this on Sunday 4.22 every week (default cron weekly timing). To run
|
|
# this bi-weekly, we have to skip every second run.
|
|
/usr/local/bin/test-too-soon "cleaning-dist-git-data-volume" 10 && exit 0
|
|
|
|
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
|