X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.hourly;h=382dd1a9c85926d750ff2dc905dc5287803691e4;hb=1ed166930da5d00d035eac23fac5f3f576bf6827;hp=39a4d0d8214f298e16f3748ae1b57fff502dd82c;hpb=fd2177afc5c786b2e1bf51671aa4ca9d53671982;p=dak.git diff --git a/config/debian/cron.hourly b/config/debian/cron.hourly index 39a4d0d8..382dd1a9 100755 --- a/config/debian/cron.hourly +++ b/config/debian/cron.hourly @@ -3,20 +3,29 @@ # 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 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,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 + do_new dak show-new > /dev/null || true rm -f $LOCKFILE fi