X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.hourly;h=2b80ffe16b964e6d3b2116e95b2bbb91d4a46e96;hb=56c670d4b1dd0d73a38f9e6d47d48356b8cc3407;hp=aef24c09515a023aa49b7fad2521cd080b6de4f5;hpb=e1156b3b857f5496a299e621d291cff0ba957d23;p=dak.git diff --git a/config/debian/cron.hourly b/config/debian/cron.hourly index aef24c09..2b80ffe1 100755 --- a/config/debian/cron.hourly +++ b/config/debian/cron.hourly @@ -1,8 +1,9 @@ -#! /bin/sh +#! /bin/bash # # 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 @@ -12,12 +13,12 @@ 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 +dak graph -n new,byhand,p-u-new,o-p-u-new,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 - dak show-new > /dev/null + dak show-new > /dev/null || true rm -f $LOCKFILE fi