summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2009-12-27 14:39:36 +0100
committerJoerg Jaspert <joerg@debian.org>2009-12-27 14:39:36 +0100
commitf1e4d734e5e5b2fe4a64a1e60739ae0cca2e5e21 (patch)
tree121b5d73054b7329ceb233d53674e7a60c96d385 /bin
parentb3b3b8c010c53ddd7d46b4a137bd8274528ee3fa (diff)
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 <joerg@debian.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ftpsync4
1 files changed, 4 insertions, 0 deletions
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
}