diff options
author | Joerg Jaspert <joerg@debian.org> | 2008-10-30 23:12:32 +0100 |
---|---|---|
committer | Joerg Jaspert <joerg@debian.org> | 2008-10-30 23:12:32 +0100 |
commit | 6609169bb85037ce01bea27dbf184a31f192359b (patch) | |
tree | 1dabda542b91695cb713691119b9a0a196c389b2 | |
parent | efbaaf0ce2fe1150744f03d207922018fdd4d492 (diff) |
ftpsync
right check for callback
Signed-off-by: Joerg Jaspert <joerg@debian.org>
-rwxr-xr-x | bin/ftpsync | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/ftpsync b/bin/ftpsync index bc59600..26defce 100755 --- a/bin/ftpsync +++ b/bin/ftpsync @@ -320,9 +320,11 @@ exec >"$LOG" 2>&1 log "Mirrorsync start" log "Acquired main lock" -if [ "xtruex" = "x${SYNCCALLBACK}x" ] && [ "xnonex" = "x${CALLBACKHOST}x" ] || [ "xnonex" = "x${CALLBACKKEY}x" ]; then - SYNCCALLBACK="false" - error "We are asked to call back, but we do not know where to and do not have a key, ignoring callback" +if [ "xtruex" = "x${SYNCCALLBACK}x" ]; then + if [ "xnonex" = "x${CALLBACKHOST}x" ] || [ "xnonex" = "x${CALLBACKKEY}x" ]; then + SYNCCALLBACK="false" + error "We are asked to call back, but we do not know where to and do not have a key, ignoring callback" + fi fi HOOK=( |