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.
This commit is contained in:
@@ -124,12 +124,15 @@ detect_os_1 () {
|
|||||||
|
|
||||||
# - Support systemd ?
|
# - Support systemd ?
|
||||||
# -
|
# -
|
||||||
if [[ "X$(which systemd)" = "X" ]]; then
|
systemd=$(which systemd)
|
||||||
SYSTEMD_EXISTS=false
|
systemctl=$(which systemctl)
|
||||||
else
|
if [[ -n "$systemd" ]] || [[ -n "$systemctl" ]] ; then
|
||||||
SYSTEMD_EXISTS=true
|
SYSTEMD_EXISTS=true
|
||||||
|
else
|
||||||
|
SYSTEMD_EXISTS=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# - Set variable
|
# - Set variable
|
||||||
# - os_dist
|
# - os_dist
|
||||||
# - os_version
|
# - os_version
|
||||||
|
|||||||
@@ -124,10 +124,12 @@ detect_os_1 () {
|
|||||||
|
|
||||||
# - Support systemd ?
|
# - Support systemd ?
|
||||||
# -
|
# -
|
||||||
if [[ "X$(which systemd)" = "X" ]]; then
|
systemd=$(which systemd)
|
||||||
SYSTEMD_EXISTS=false
|
systemctl=$(which systemctl)
|
||||||
else
|
if [[ -n "$systemd" ]] || [[ -n "$systemctl" ]] ; then
|
||||||
SYSTEMD_EXISTS=true
|
SYSTEMD_EXISTS=true
|
||||||
|
else
|
||||||
|
SYSTEMD_EXISTS=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# - Set variable
|
# - Set variable
|
||||||
|
|||||||
Reference in New Issue
Block a user