]> err.no Git - dak/commitdiff
cron.unchecked: don't try doing anything if the daily lock is held
authorAnthony Towns <aj@azure.humbug.org.au>
Thu, 3 Jan 2008 15:02:09 +0000 (15:02 +0000)
committerAnthony Towns <aj@azure.humbug.org.au>
Thu, 3 Jan 2008 15:02:09 +0000 (15:02 +0000)
config/debian/cron.unchecked

index a98ff0869604cd84349a1b967bca2de45e865c90..0e595736659968d462a9ab1f7686a90cf3c58616 100644 (file)
@@ -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