From 6609169bb85037ce01bea27dbf184a31f192359b Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Thu, 30 Oct 2008 23:12:32 +0100 Subject: ftpsync right check for callback Signed-off-by: Joerg Jaspert --- bin/ftpsync | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bin') 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=( -- cgit v1.2.3