From f1e4d734e5e5b2fe4a64a1e60739ae0cca2e5e21 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sun, 27 Dec 2009 14:39:36 +0100 Subject: ftpsync remove the Archive-Update-in-Progress file before pushing downstreams. Otherwise its a race condition if they get this or not. Signed-off-by: Joerg Jaspert --- bin/ftpsync | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin') diff --git a/bin/ftpsync b/bin/ftpsync index c9543f8..c510f36 100755 --- a/bin/ftpsync +++ b/bin/ftpsync @@ -448,6 +448,9 @@ function mainroutine() { set -e fi + # Remove the Archive-Update-in-Progress file before we push our downstreams. + rm -f "${LOCK}" + if [ x${HUB} = "xtrue" ]; then # Only trigger slave mirrors if we had a push for stage2 or all if [ "xtruex" = "x${SYNCSTAGE2}x" ] || [ "xtruex" = "x${SYNCALL}x" ]; then @@ -462,6 +465,7 @@ function mainroutine() { hook $HOOK fi fi + # All done, lets call cleanup cleanup } -- cgit v1.2.3