From 5fdadcf557c9bb418a7f5fe2cc7491e48741822d Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 16 Feb 2024 09:04:32 +0100 Subject: [PATCH] fix: add openbsd ssh server check --- scripts/install.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 42b0c24e6..1293f98de 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -81,12 +81,20 @@ esac SSH_DETECTED=false if [ -x "$(command -v systemctl)" ]; then if systemctl status sshd >/dev/null 2>&1; then - echo "OpenSSH server is installed and running." + echo "OpenSSH server is installed." + SSH_DETECTED=true + fi + if systemctl status ssh >/dev/null 2>&1; then + echo "OpenSSH server is installed." SSH_DETECTED=true fi elif [ -x "$(command -v service)" ]; then if service sshd status >/dev/null 2>&1; then - echo "OpenSSH server is installed and running." + echo "OpenSSH server is installed." + SSH_DETECTED=true + fi + if service ssh status >/dev/null 2>&1; then + echo "OpenSSH server is installed." SSH_DETECTED=true fi fi