From b992f4277d047f47475f94a801082c6b637e2e40 Mon Sep 17 00:00:00 2001 From: onovy Date: Mon, 30 Mar 2015 20:13:39 +0200 Subject: [PATCH] Remote user is optional now in remote slaves. --- osync.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osync.sh b/osync.sh index ffa6493..7c02db6 100755 --- a/osync.sh +++ b/osync.sh @@ -1686,6 +1686,10 @@ function Init # remove everything after '@' _first_part=${uri%@*} REMOTE_USER=${_first_part%;*} + if [ -n "$REMOTE_USER" ] + then + REMOTE_USER=$(id -un) + fi #fingerprint=${_first_part#*fingerprint=} if [ "$SSH_RSA_PRIVATE_KEY" == "" ] then