diff options
author | Joerg Jaspert <joerg@debian.org> | 2008-10-22 00:40:56 +0200 |
---|---|---|
committer | Joerg Jaspert <joerg@debian.org> | 2008-10-22 00:40:56 +0200 |
commit | 2ba6ed6fad84b8b14a58df8d149f3ba9a6960b27 (patch) | |
tree | 27a8a861abe4b6f89979eafbed7dc831385f733c | |
parent | 59c187046b14470adfde7ec07b40f7961aa2487e (diff) |
only trigger slave mirrors if we got pushed for stage2 or all
Signed-off-by: Joerg Jaspert <joerg@debian.org>
-rwxr-xr-x | bin/ftpsync | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/bin/ftpsync b/bin/ftpsync index feda3fe..968394c 100755 --- a/bin/ftpsync +++ b/bin/ftpsync @@ -410,15 +410,18 @@ if [ "xtruex" = "x${SYNCCALLBACK}x" ]; then fi if [ x${HUB} = "xtrue" ]; then - log "Trigger slave mirrors" - ${BASEDIR}/bin/runmirrors - log "Trigger slave done" - - HOOK=( - HOOKNR=5 - HOOKSCR=${HOOK5} - ) - hook $HOOK + # Only trigger slave mirrors if we had a push for stage2 or all + if [ "xtruex" = "x${SYNCSTAGE2}x" ] || [ "xtruex" = "x${SYNCALL}x" ]; then + log "Trigger slave mirrors" + ${BASEDIR}/bin/runmirrors + log "Trigger slave done" + + HOOK=( + HOOKNR=5 + HOOKSCR=${HOOK5} + ) + hook $HOOK + fi fi # All done, rest is done by cleanup hook. |