From 37c2b3737e10368cff0db884a17c5539570fa337 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 15 Dec 2025 18:31:04 +0100 Subject: [PATCH] Fis error in determin if systemd support is present in case of debian 13 and newer. --- handle_domain_on_webserver.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/handle_domain_on_webserver.sh b/handle_domain_on_webserver.sh index bb1f913..0192d3c 100755 --- a/handle_domain_on_webserver.sh +++ b/handle_domain_on_webserver.sh @@ -133,9 +133,11 @@ fi # - Is 'systemd' supported on this system # - -if [ "X`which systemd`" = "X" ]; then - systemd_exists=false -else +systemd_exists=false +systemd=$(which systemd) +systemctl=$(which systemctl) + +if [[ -n "$systemd" ]] || [[ -n "$systemctl" ]] ; then systemd_exists=true fi