diff options
author | Joerg Jaspert <joerg@debian.org> | 2008-11-03 00:05:21 +0100 |
---|---|---|
committer | Joerg Jaspert <joerg@debian.org> | 2008-11-03 00:05:21 +0100 |
commit | 1f2711255d96d1bd067e24aa0fdf80bc33e6dcaf (patch) | |
tree | f88f33cdaad02e2866c82a5c147f313bea706146 /bin | |
parent | 7ad465f95034a7e0c1eddd3fd3fe61ad11f467f4 (diff) |
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 <joerg@debian.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ftpsync | 6 |
1 files changed, 5 insertions, 1 deletions
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 |