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