]> git.decadent.org.uk Git - dak.git/commitdiff
And another case of "shutup, cron"
authorJoerg Jaspert <joerg@debian.org>
Fri, 8 May 2015 08:11:44 +0000 (10:11 +0200)
committerJoerg Jaspert <joerg@debian.org>
Fri, 8 May 2015 08:11:44 +0000 (10:11 +0200)
scripts/debian/sync-dd

index 6c8f0f8eb4980eef1e2603ea5efced552c12bd4a..857c68d1f9ccf69c4075bd9a9a020784b715bbad 100755 (executable)
@@ -58,7 +58,7 @@ cleanup() {
 trap cleanup EXIT TERM HUP INT QUIT
 
 # Also, NEVER use --delete-excluded!
-if lockfile -r3 "${lockfile}"; then
+if lockfile -r3 "${lockfile}" 2> /dev/null; then
     case "${mode}" in
         sync)
             rsync -aH -B8192 \
@@ -118,6 +118,6 @@ if lockfile -r3 "${lockfile}"; then
             ;;
     esac
 else
-    echo "Couldn't get the lock, not syncing"
+    #echo "Couldn't get the lock, not syncing"
     exit 0
 fi