]> git.decadent.org.uk Git - dak.git/blob - config/debian-non-US/cron.weekly
Enmasse adaptation for removal of silly names.
[dak.git] / config / debian-non-US / cron.weekly
1 #!/bin/sh
2 #
3 # Run once a week via cron, out of dak's crontab.
4
5 set -e
6 export SCRIPTVARS=/org/non-us.debian.org/dak/config/debian-non-US/vars
7 . $SCRIPTVARS
8
9 ################################################################################
10
11 # Purge empty directories
12
13 if [ ! -z "$(find $ftpdir/pool/ -type d -empty)" ]; then
14    find $ftpdir/pool/ -type d -empty | xargs rmdir;
15 fi
16
17 # Clean up apt-ftparchive's databases
18
19 cd $masterdir
20 apt-ftparchive -q clean apt.conf
21
22 ################################################################################