]> git.decadent.org.uk Git - dak.git/blobdiff - cron.weekly
install binaries with their as-written names.the da_ names that were used before...
[dak.git] / cron.weekly
index 949f50543a1fb7ad2f4b1e71682340c0c2e7f043..54d68b94309630b180372c168023fdb997d964a0 100755 (executable)
@@ -8,20 +8,18 @@ export SCRIPTVARS=/org/ftp.debian.org/katie/vars
 
 ################################################################################
 
-echo "Creating pre-weekly-cron-job backup of projectb database..."
-pg_dump projectb > /org/ftp.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S)
+# Clean out incoming
 
-################################################################################
+shania
 
-cd $masterdir
-shania -v 
-shania -v -m -i $incoming
+# Purge empty directories
 
-# TODO: weekly postins to d-c (?), backup of report (?), backup of changes.tgz (?)
+if [ ! -z "$(find $ftpdir/pool/ -type d -empty)" ]; then 
+   find $ftpdir/pool/ -type d -empty | xargs rmdir; 
+fi
 
-################################################################################
+# Clean up apt-ftparchive's databases
 
-echo "Creating post-weekly-cron-job backup of projectb database..."
-pg_dump projectb > /org/ftp.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S)
+apt-ftparchive clean apt.conf
 
 ################################################################################