X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.hourly;h=fa565c4e7e45adc3b8c93508d27472dc220b0f56;hb=a47ca6dffe217f5bd0898fbeb424a6ed589f34f0;hp=dc17a55fd55dba33f7a8fe171e628dca2c54d8b1;hpb=c7ac1ec4cd1e440c500608ee765be3fd6d0090e3;p=dak.git diff --git a/config/debian/cron.hourly b/config/debian/cron.hourly index dc17a55f..fa565c4e 100755 --- a/config/debian/cron.hourly +++ b/config/debian/cron.hourly @@ -3,31 +3,41 @@ # Executed hourly via cron, out of dak's crontab. set -e +set -o pipefail set -u export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars . $SCRIPTVARS +PROGRAM="Hourly" +######################################################################## +# Functions # +######################################################################## +# common functions are "outsourced" +. "${configdir}/common" + dak import-users-from-passwd -dak queue-report -n > $webdir/new.html -dak queue-report -8 -d new,byhand,proposedupdates,oldproposedupdates -r $webdir/stat -#dak show-deferred -r $webdir/stat > ${webdir}/deferred.html -#dak graph -n new,byhand,proposedupdates,oldproposedupdates,deferred -r $webdir/stat -i $webdir/stat -x $scriptsdir/rrd-release-freeze-dates # do not run show-new and other stuff in parallel LOCKFILE="$lockdir/unchecked.lock" if lockfile -r16 $LOCKFILE 2> /dev/null; then + do_new dak show-new > /dev/null || true rm -f $LOCKFILE fi +dak queue-report -n > $webdir/new.html +dak queue-report -8 -d new,byhand,stable-new,oldstable-new -r $webdir/stat +dak show-deferred -r $webdir/stat > ${webdir}/deferred.html +dak graph -n new,byhand,stable-new,oldstable-new,deferred -r $webdir/stat -i $webdir/stat -x $scriptsdir/rrd-release-freeze-dates + 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/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