X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.hourly;h=ccfbe38c25c656527bb0a9d4306f578ab4cf6df0;hb=a230888892aa3638bd2f51446a788659c182c2eb;hp=375cd5ada83edb93f79eb02fe9fe00b789fb238a;hpb=e7de16356672279508b4cd6259ff5fcee7900141;p=dak.git diff --git a/config/debian/cron.hourly b/config/debian/cron.hourly index 375cd5ad..ccfbe38c 100755 --- a/config/debian/cron.hourly +++ b/config/debian/cron.hourly @@ -1,13 +1,32 @@ #! /bin/sh # -# Executed hourly via cron, out of troup's crontab. +# Executed hourly via cron, out of dak's crontab. set -e set -u -export SCRIPTVARS=/srv/ftp.debian.org/dak/config/debian/vars + +export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars . $SCRIPTVARS -date -u > $ftpdir/project/trace/ftp-master.debian.org dak import-users-from-passwd dak queue-report -n > $webdir/new.html -dak show-new > /dev/null +dak queue-report -8 -d new,byhand,proposedupdates,oldproposedupdates +dak show-deferred > ${webdir}/deferred.html + +# do not run show-new and other stuff in parallel +LOCKFILE="$lockdir/unchecked.lock" +if lockfile -r16 $LOCKFILE 2> /dev/null; then + dak show-new > /dev/null + rm -f $LOCKFILE +fi + +cd $webdir +cat removals-20*.txt > removals-full.txt +cat removals.txt >> removals-full.txt +cat removals-20*.822 > removals-full.822 +cat removals.822 >> removals-full.822 + +$base/dak/tools/queue_rss.py -q $queuedir/new -o $webdir/rss/ -d $base/misc -l $base/log/ +$base/dak/tools/removals.pl $configdir/removalsrss.rc > $webdir/rss/removals.rss + +$scriptsdir/generate-di