diff options
author | Erich Eckner <git@eckner.net> | 2020-09-23 13:07:20 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-09-23 13:07:20 +0200 |
commit | 6f4be056a52020242f7ddd55e8528bc9a7b1ab7f (patch) | |
tree | ac0a3e10bad21bf04327fc21941ae5ddbf29da8a /clean-cache | |
parent | b31a837e7bdb2ea07be501965e5626d0b41d0fd3 (diff) | |
download | arch-mirror-6f4be056a52020242f7ddd55e8528bc9a7b1ab7f.tar.xz |
clean-cache new: start of trantision to nginx cache
Diffstat (limited to 'clean-cache')
-rwxr-xr-x | clean-cache | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clean-cache b/clean-cache new file mode 100755 index 0000000..35bc6a7 --- /dev/null +++ b/clean-cache @@ -0,0 +1,11 @@ +#!/bin/bash + +mirror_dir='/srv/http/arch-mirror' + +for repo_dir in $( + find "${mirror_dir}" -type f -printf '%h\n' \ + | uniq \ + | sort -u +); do + paccache -v -r -k 2 -c "${repo_dir}" +done |