]> git.decadent.org.uk Git - dak.git/blobdiff - cron.weekly-non-US
more typos/thinkos
[dak.git] / cron.weekly-non-US
index 02e3bf25897c0861ed505a7ef0409ad893f481bd..0873e752773bf1b6f092daf0a23d88ae367edc5d 100755 (executable)
@@ -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/non-us.debian.org/katie/vars-non-US
@@ -8,26 +8,15 @@ export SCRIPTVARS=/org/non-us.debian.org/katie/vars-non-US
 
 ################################################################################
 
-echo "Creating pre-weekly-cron-job backup of projectb database..."
-pg_dump projectb > /org/non-us.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S)
+# Purge empty directories
 
-################################################################################
+if [ ! -z "$(find $ftpdir/pool/ -type d -empty)" ]; then
+   find $ftpdir/pool/ -type d -empty | xargs rmdir;
+fi
 
-# temporary hack to work around the lack of an apt-utils & python-apt package
-export PYTHONPATH=$PYTHONPATH:/org/non-us.debian.org/scripts/apt/build/bin/
-export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/org/non-us.debian.org/scripts/apt/build/bin/
-export PATH=$PATH:/org/non-us.debian.org/scripts/apt/build/bin/
-export PATH=$PATH:/org/non-us.debian.org/scripts/apt/build/bin/
+# Clean up apt-ftparchive's databases
 
 cd $masterdir
-shania -v 
-shania -v -m -i $incoming
-
-# TODO: weekly postins to d-c (?), backup of report (?), backup of changes.tgz (?)
-
-################################################################################
-
-echo "Creating post-weekly-cron-job backup of projectb database..."
-pg_dump projectb > /org/non-us.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S)
+apt-ftparchive -q clean apt.conf-non-US
 
 ################################################################################