From 8705fdd787775366c3d3e5795f9428e24720e5a4 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Mon, 28 Dec 2009 22:31:45 +0100 Subject: ftpsync call runmirrors with the correct argument set Signed-off-by: Joerg Jaspert --- bin/ftpsync | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'bin') 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}" -- cgit v1.2.3