X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.hourly;h=d2451b8a019b6a7854a584d46120c8dd84c00947;hb=fb979d6ea8674b80caaedbcb79144bef45560d48;hp=a037ee92b130e728b3a2a7e391d6c633c2fbb828;hpb=ef60d6025618d8c25745ca1e051c8767411d6450;p=dak.git diff --git a/config/debian/cron.hourly b/config/debian/cron.hourly index a037ee92..d2451b8a 100755 --- a/config/debian/cron.hourly +++ b/config/debian/cron.hourly @@ -2,6 +2,10 @@ # # Executed hourly via cron, out of dak's crontab. +# Only one of me should ever run. +[ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -E 0 -en "$0" "$0" +"$@" || : + set -e set -o pipefail set -u @@ -33,7 +37,7 @@ if lockfile -r16 $LOCKFILE 2> /dev/null; then fi dak queue-report -n > $webdir/new.html -dak queue-report -n -d backports-new > ${webdir}/backports-new.html +dak queue-report -n -d backports-new,backports-policy > ${webdir}/backports-new.html dak queue-report -8 -d new,byhand,stable-new,oldstable-new,backports-new -r $webdir/stat sudo -u dak-unpriv 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 @@ -50,7 +54,7 @@ $base/dak/tools/removals.pl $configdir/removalsrss.rc > $webdir/rss/removals.rss # cd $masterdir # timeout -k 180 120 /usr/bin/epydoc -q --html --graph all --css blue -n DAK -o $webdir/epydoc --include-log --graph all --show-imports $masterdir/dak/ $masterdir/dakweb/ || true -# Tell ries to sync its tree +# Tell the public mirror to sync its tree ${scriptsdir}/sync-dd dd-sync dd-sync1 dd-sync2 sync $scriptsdir/generate-d-i