mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Cleanup Dropbear Notice
This commit is contained in:
parent
8a62f79059
commit
9c35387106
@ -669,22 +669,24 @@ function detect_ssh {
|
|||||||
|
|
||||||
if hash ssh 2>/dev/null
|
if hash ssh 2>/dev/null
|
||||||
then
|
then
|
||||||
|
MESSAGE="Validating SSH Command on $HOSTNAME (OpenSSH)"
|
||||||
echo_good
|
echo_good
|
||||||
SSH_CMD='ssh'
|
SSH_CMD='ssh'
|
||||||
|
elif hash dbclient 2>/dev/null
|
||||||
|
then
|
||||||
|
MESSAGE="Validating SSH Command on $HOSTNAME (Dropbear)"
|
||||||
|
echo_good
|
||||||
|
SSH_CMD='dbclient'
|
||||||
else
|
else
|
||||||
echo_fail
|
echo_fail
|
||||||
|
|
||||||
MESSAGE="Attempting to Compensate"
|
MESSAGE="Attempting to Compensate"
|
||||||
echo_info
|
echo_info
|
||||||
if hash dbclient 2>/dev/null
|
MESSAGE="Installing SSH Client with ${PKG_MANAGER}"
|
||||||
then
|
echo_stat
|
||||||
SSH_CMD='dbclient'
|
|
||||||
MESSAGE="Using Dropbear Instead"
|
${PKG_INSTALL} ssh-client >/dev/null 2>&1
|
||||||
echo_info
|
error_validate
|
||||||
else
|
|
||||||
MESSAGE="Installing SSH Client with ${PKG_MANAGER}"
|
|
||||||
echo_stat
|
|
||||||
${PKG_INSTALL} ssh-client >/dev/null 2>&1
|
|
||||||
error_validate
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user