X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=cron.weekly;h=9c84600cb8034759240593d2658b250fc152f881;hb=6ada259d555e36a1546789c280edc3f944b7de7f;hp=bafca02ecdbc9905429421852112fbff09d945e8;hpb=e8eacb00ee41d7ab974ba913fff40e5c082b8e1a;p=dak.git diff --git a/cron.weekly b/cron.weekly index bafca02e..9c84600c 100755 --- a/cron.weekly +++ b/cron.weekly @@ -13,14 +13,20 @@ pg_dump projectb > /org/ftp.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S) ################################################################################ -# temporary hack to work around the lack of an apt-utils & python-apt package -export PYTHONPATH=$PYTHONPATH:/org/ftp.debian.org/scripts/apt/build/bin/ -export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/org/ftp.debian.org/scripts/apt/build/bin/ -export PATH=$PATH:/org/ftp.debian.org/scripts/apt/build/bin/ - -cd $masterdir -shania -v -shania -v -m -i $incoming +### [JJT] Disabled until shania is rewritten +#cd $masterdir +#shania -v +#shania -v -m -i $incoming + +# Purge empty directories + +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 # TODO: weekly postins to d-c (?), backup of report (?), backup of changes.tgz (?)