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