mirror of
https://github.com/vmstan/gravity-sync.git
synced 2025-06-22 22:00:32 -04:00
Alert for SSH type
This commit is contained in:
parent
82e2a474a7
commit
f61c8fa257
@ -278,12 +278,17 @@ function validate_os_sshpass {
|
|||||||
if test -z "$REMOTE_PASS"
|
if test -z "$REMOTE_PASS"
|
||||||
then
|
then
|
||||||
sshpassword=''
|
sshpassword=''
|
||||||
|
MESSAGE="Using SSH Key-Pair Authentication"
|
||||||
else
|
else
|
||||||
sshpassword="sshpass -p ${REMOTE_PASS}"
|
sshpassword="sshpass -p ${REMOTE_PASS}"
|
||||||
|
MESSAGE="Using SSH Password Authentication"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
sshpassword=''
|
sshpassword=''
|
||||||
|
MESSAGE="Using SSH Key-Pair Authentication"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo -e "$INFO $MESSAGE"
|
||||||
}
|
}
|
||||||
|
|
||||||
# List GS Arguments
|
# List GS Arguments
|
||||||
|
Loading…
x
Reference in New Issue
Block a user