summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2009-12-28 22:31:45 +0100
committerJoerg Jaspert <joerg@debian.org>2009-12-28 22:31:45 +0100
commit8705fdd787775366c3d3e5795f9428e24720e5a4 (patch)
treeb08363ee41cbd234ee6575247dc681f528e0dd02
parent9aaa0aadba78e8ca6fb3fa47839a066b938ac327 (diff)
ftpsync
call runmirrors with the correct argument set Signed-off-by: Joerg Jaspert <joerg@debian.org>
-rwxr-xr-xbin/ftpsync11
1 files changed, 6 insertions, 5 deletions
diff --git a/bin/ftpsync b/bin/ftpsync
index 2808d34..5e127cd 100755
--- a/bin/ftpsync
+++ b/bin/ftpsync
@@ -467,13 +467,14 @@ function mainroutine() {
RUNMIRRORARGS="${RUNMIRRORARGS} -f"
if [ "xtruex" = "x${SYNCSTAGE1}x" ]; then
- # This is true when we have a mhop sync. And only then, due to the earlier if.
- # So if that happens, tell runmirrors we are doing mhop stage1.
- RUNMIRRORARGS="${RUNMIRRORARGS} -s stage1 -k mhop"
+ # This is true when we have a mhop sync. A normal multi-stage push sending stage1 will
+ # not get to this point.
+ # So if that happens, tell runmirrors we are doing mhop
+ RUNMIRRORARGS="${RUNMIRRORARGS} -k mhop"
elif [ "xtruex" = "x${SYNCSTAGE2}x" ]; then
- RUNMIRRORARGS="${RUNMIRRORARGS} -s stage2"
+ RUNMIRRORARGS="${RUNMIRRORARGS} -k stage2"
elif [ "xtruex" = "x${SYNCALL}x" ]; then
- RUNMIRRORARGS="${RUNMIRRORARGS} -s all"
+ RUNMIRRORARGS="${RUNMIRRORARGS} -k all"
fi
log "Trigger slave mirrors"
${BASEDIR}/bin/runmirrors "${RUNMIRRORARGS}"