summaryrefslogtreecommitdiff
path: root/clean-cache
blob: 35bc6a782ea3c3d3c87fbb3e41ea48b03e1fbbfb (plain)
1
2
3
4
5
6
7
8
9
10
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