From 0837b37569fcd54764c13aed79ce22ecc9b90ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C4=83rcziem=20=E2=84=A2?= <118485377+spalencsar@users.noreply.github.com> Date: Mon, 6 Oct 2025 11:57:31 +0200 Subject: [PATCH] Make SSH service check distribution-specific (only sshd on openSUSE) --- lib/performance.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/performance.sh b/lib/performance.sh index 6bcdef8..d673936 100644 --- a/lib/performance.sh +++ b/lib/performance.sh @@ -298,7 +298,17 @@ perform_health_check() { echo "=== Service Status ===" # Check services based on what was configured/installed - local services_to_check=("ssh" "sshd") + local services_to_check=() + + # SSH services (distribution-specific) + case $DISTRO in + opensuse) + services_to_check+=("sshd") + ;; + *) + services_to_check+=("ssh" "sshd") + ;; + esac # Samba services if [[ "${INSTALL_SAMBA:-true}" == "true" ]]; then