Remote user is optional now in remote slaves.
This commit is contained in:
parent
784406a23d
commit
b992f4277d
4
osync.sh
4
osync.sh
|
@ -1686,6 +1686,10 @@ function Init
|
||||||
# remove everything after '@'
|
# remove everything after '@'
|
||||||
_first_part=${uri%@*}
|
_first_part=${uri%@*}
|
||||||
REMOTE_USER=${_first_part%;*}
|
REMOTE_USER=${_first_part%;*}
|
||||||
|
if [ -n "$REMOTE_USER" ]
|
||||||
|
then
|
||||||
|
REMOTE_USER=$(id -un)
|
||||||
|
fi
|
||||||
#fingerprint=${_first_part#*fingerprint=}
|
#fingerprint=${_first_part#*fingerprint=}
|
||||||
if [ "$SSH_RSA_PRIVATE_KEY" == "" ]
|
if [ "$SSH_RSA_PRIVATE_KEY" == "" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue