#!/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/non-us.debian.org/katie/vars-non-US
################################################################################
-# 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
-apt-ftparchive clean apt.conf-non-US
+cd $masterdir
+apt-ftparchive -q clean apt.conf-non-US
################################################################################