From a019d355207ab03db6ca8de0e3e1f173e95fa45e Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 15 Dec 2025 01:19:28 +0100 Subject: [PATCH] mod_php-5.3_debian-9_install.sh,mod_php-5.4_debian-9_install.sh: fix Systemd support if debian version 13 or newer. --- mod_php-5.3_debian-9_install.sh | 9 ++++++--- mod_php-5.4_debian-9_install.sh | 8 +++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/mod_php-5.3_debian-9_install.sh b/mod_php-5.3_debian-9_install.sh index 5729bb0..9810133 100755 --- a/mod_php-5.3_debian-9_install.sh +++ b/mod_php-5.3_debian-9_install.sh @@ -124,12 +124,15 @@ detect_os_1 () { # - Support systemd ? # - -if [[ "X$(which systemd)" = "X" ]]; then - SYSTEMD_EXISTS=false -else +systemd=$(which systemd) +systemctl=$(which systemctl) +if [[ -n "$systemd" ]] || [[ -n "$systemctl" ]] ; then SYSTEMD_EXISTS=true +else + SYSTEMD_EXISTS=false fi + # - Set variable # - os_dist # - os_version diff --git a/mod_php-5.4_debian-9_install.sh b/mod_php-5.4_debian-9_install.sh index 7927d03..6fdd1e8 100755 --- a/mod_php-5.4_debian-9_install.sh +++ b/mod_php-5.4_debian-9_install.sh @@ -124,10 +124,12 @@ detect_os_1 () { # - Support systemd ? # - -if [[ "X$(which systemd)" = "X" ]]; then - SYSTEMD_EXISTS=false -else +systemd=$(which systemd) +systemctl=$(which systemctl) +if [[ -n "$systemd" ]] || [[ -n "$systemctl" ]] ; then SYSTEMD_EXISTS=true +else + SYSTEMD_EXISTS=false fi # - Set variable