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