summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2008-10-30 23:12:32 +0100
committerJoerg Jaspert <joerg@debian.org>2008-10-30 23:12:32 +0100
commit6609169bb85037ce01bea27dbf184a31f192359b (patch)
tree1dabda542b91695cb713691119b9a0a196c389b2 /bin
parentefbaaf0ce2fe1150744f03d207922018fdd4d492 (diff)
ftpsync
right check for callback Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ftpsync8
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=(