X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.hourly;h=d2451b8a019b6a7854a584d46120c8dd84c00947;hb=fb979d6ea8674b80caaedbcb79144bef45560d48;hp=b7871d8ae6d9f12922a26fed99c7137d52c1bc28;hpb=7dcbdedddf8789f3cbbb2e24da71eb4ad1403a04;p=dak.git diff --git a/config/debian/cron.hourly b/config/debian/cron.hourly index b7871d8a..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 @@ -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