X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.hourly;h=44339a35bd3891b12115c3aa41c7d32133a444ff;hb=723c3eee24edcfd954b61fd98649a783094e7b5e;hp=0699846607b974c6a45d0f95103e374c5a04c276;hpb=bc1c1ab5cbff82785ac2287ca9e1a522910aab47;p=dak.git diff --git a/config/debian/cron.hourly b/config/debian/cron.hourly index 06998466..44339a35 100755 --- a/config/debian/cron.hourly +++ b/config/debian/cron.hourly @@ -3,20 +3,28 @@ # 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 +######################################################################## +# 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,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 + do_new dak show-new > /dev/null || true rm -f $LOCKFILE fi