From f190bba422623faf981d793830867e16c6c6fe97 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Thu, 31 Dec 2009 16:36:51 +0100 Subject: runmirrors only skip non-mhop/staged entries if we are called from within ftpsync. When we are called outside, ie. starting the mirror run, we do have to push everything and can not skip. Signed-off-by: Joerg Jaspert --- bin/runmirrors | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/runmirrors b/bin/runmirrors index e320722..752e351 100755 --- a/bin/runmirrors +++ b/bin/runmirrors @@ -181,9 +181,9 @@ while read MTYPE MLNAME MHOSTNAME MUSER MSSHOPT; do continue fi - # If we are told we have a mhop sync to do, we will only look at staged/mhop - # entries and ignore the rest. - if [ "x${PUSHKIND}x" = "xmhopx" ]; then + # If we are told we have a mhop sync to do and are called from within ftpsync, + # we will only look at staged/mhop entries and ignore the rest. + if [ "x${PUSHKIND}x" = "xmhopx" ] && [ "x${FROMFTPSYNC}x" = "xtruex" ]; then if [ "x${MTYPE}x" != "xstagedx" ] && [ "x${MTYPE}x" != "xmhopx" ]; then continue fi -- cgit v1.2.3