From: Anthony Towns Date: Thu, 3 Jan 2008 15:02:09 +0000 (+0000) Subject: cron.unchecked: don't try doing anything if the daily lock is held X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb69358ebf5fa0dd8258f58035eb209edc5db4ca;p=dak cron.unchecked: don't try doing anything if the daily lock is held --- diff --git a/config/debian/cron.unchecked b/config/debian/cron.unchecked index a98ff086..0e595736 100644 --- a/config/debian/cron.unchecked +++ b/config/debian/cron.unchecked @@ -9,6 +9,8 @@ LOCKDAILY="" LOCKFILE="$lockdir/unchecked.lock" NOTICE="$lockdir/daily.lock" +if [ -e $NOTICE ]; then exit 0; fi + cleanup() { rm -f "$LOCKFILE" if [ ! -z "$LOCKDAILY" ]; then