X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=cron.weekly;h=8357d2ee8309fbbbbc52e582f8221d7ad158de02;hb=dd0ee5b67c650470139ffa8a50ae6b83a92ca76a;hp=a86caac260e8847de421ef1ada1e8bb5d8d95957;hpb=660b1949dc2e704ccd9bb8a4686d68f90fbe32d2;p=dak.git diff --git a/cron.weekly b/cron.weekly index a86caac2..8357d2ee 100755 --- a/cron.weekly +++ b/cron.weekly @@ -1,6 +1,6 @@ #!/bin/sh # -# Run once a week via cron, out of troup's crontab. +# Run once a week via cron, out of katie's crontab. set -e export SCRIPTVARS=/org/ftp.debian.org/katie/vars @@ -8,19 +8,16 @@ export SCRIPTVARS=/org/ftp.debian.org/katie/vars ################################################################################ -# Clean out incoming - -shania - # Purge empty directories -if [ ! -z "$(find $ftpdir/pool/ -type d -empty)" ]; then - find $ftpdir/pool/ -type d -empty | xargs rmdir; +if [ ! -z "$(find $ftpdir/pool/ -type d -empty)" ]; then + find $ftpdir/pool/ -type d -empty | xargs rmdir; fi # Clean up apt-ftparchive's databases cd $masterdir apt-ftparchive -q clean apt.conf +apt-ftparchive -q clean apt.conf.buildd ################################################################################