From cc729afc3a11703104f8e9f17923f8cf821f1c3a Mon Sep 17 00:00:00 2001 From: Ali Date: Tue, 15 Jul 2025 19:16:06 +0100 Subject: [PATCH] syntax fix --- du_setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du_setup.sh b/du_setup.sh index b29da30..2ffdfa6 100644 --- a/du_setup.sh +++ b/du_setup.sh @@ -864,7 +864,7 @@ rollback_ssh_changes() { SSH_SERVICE="ssh.socket" print_info "Detected SSH socket activation: using ssh.socket." log "Rollback: Using ssh.socket for SSH service." - elif ! systemctl list-units --full -all --no-pager | grep -E "[[:space:]]$SSH_SERVICE[[:space:]]" >/dev/null 2>&1; then + elif ! systemctl list-units --full -all --no-pager | grep -E "[[:space:]]${SSH_SERVICE}[[:space:]]" >/dev/null 2>&1; then SSH_SERVICE="ssh.service" # Fallback for Ubuntu print_warning "SSH service $SSH_SERVICE not found, falling back to ssh.service." log "Rollback warning: Using fallback SSH service ssh.service."