Cleanup Dropbear Notice

This commit is contained in:
Michael Stanclift 2020-06-01 13:45:16 -05:00
parent 8a62f79059
commit 9c35387106

View File

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