From 1f2711255d96d1bd067e24aa0fdf80bc33e6dcaf Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Mon, 3 Nov 2008 00:05:21 +0100 Subject: ftpsync oh well, make it look nice and only tell where we are pushed from if it actually has a ssh connection Signed-off-by: Joerg Jaspert --- bin/ftpsync | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/ftpsync b/bin/ftpsync index c9b4fc5..2af437f 100755 --- a/bin/ftpsync +++ b/bin/ftpsync @@ -319,7 +319,11 @@ trap cleanup EXIT ERR TERM HUP INT QUIT exec >"$LOG" 2>&1 # Look who pushed us and note that in the log. -log "Mirrorsync start, we got pushed from ${SSH_CONNECTION%%\ *}" +log "Mirrorsync start" +PUSHFROM="${SSH_CONNECTION%%\ *}" +if [ -n "${PUSHFROM}" ]; then + log "We got pushed from ${PUSHFROM}" +fi log "Acquired main lock" if [ "xtruex" = "x${SYNCCALLBACK}x" ]; then -- cgit v1.2.3