diff options
author | Joerg Jaspert <joerg@debian.org> | 2009-12-31 16:36:51 +0100 |
---|---|---|
committer | Joerg Jaspert <joerg@debian.org> | 2009-12-31 16:36:51 +0100 |
commit | f190bba422623faf981d793830867e16c6c6fe97 (patch) | |
tree | 7ae81cb30282cecab8d46e1c17c6e052fed8300e | |
parent | c7ecee0e9700f796ab63388a60095c478952eb82 (diff) |
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 <joerg@debian.org>
-rwxr-xr-x | bin/runmirrors | 6 |
1 files 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 |