From 62fc23220500b500e5a834097f3e0b636ef2fe05 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Mon, 1 Jun 2020 10:13:01 -0500 Subject: [PATCH] Attempt to install ssh-client if not found --- gravity-sync.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gravity-sync.sh b/gravity-sync.sh index 0d31586..8ec52c8 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -668,9 +668,10 @@ function detect_ssh { MESSAGE="Using Dropbear Instead" echo_info else - MESSAGE="No Alternative Detected" - echo_info - exit_nochange + MESSAGE="Installing SSH Client with ${PKG_MANAGER}" + echo_stat + ${PKG_INSTALL} ssh-client >/dev/null 2>&1 + error_validate fi fi @@ -688,6 +689,9 @@ function detect_ssh { distro_check MESSAGE="Attempting to Compensate" + echo_info + + MESSAGE="Installing RSYNC with ${PKG_MANAGER}" echo_stat ${PKG_INSTALL} rsync >/dev/null 2>&1 error_validate