]> git.decadent.org.uk Git - dak.git/blob - cron.weekly
Add new top level directories
[dak.git] / cron.weekly
1 #!/bin/sh
2 #
3 # Run once a week via cron, out of katie's crontab.
4
5 set -e
6 export SCRIPTVARS=/org/ftp.debian.org/katie/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 apt-ftparchive -q clean apt.conf.buildd
22
23 ################################################################################