Merge pull request #16 from onovy/ssh_user_opt

Remote user is optional now in remote slaves.
This commit is contained in:
Orsiris de Jong 2015-03-31 01:57:44 +02:00
commit c5cf89f9d2
1 changed files with 4 additions and 0 deletions

View File

@ -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