Fis error in determin if systemd support is present in case of debian 13 and newer.
This commit is contained in:
@@ -429,12 +429,15 @@ trap clean_up SIGHUP SIGINT SIGTERM
|
|||||||
|
|
||||||
# - Support systemd ?
|
# - Support systemd ?
|
||||||
# -
|
# -
|
||||||
if [[ "X$(which systemd)" = "X" ]]; then
|
|
||||||
SYSTEMD_EXISTS=false
|
SYSTEMD_EXISTS=false
|
||||||
else
|
systemd=$(which systemd)
|
||||||
|
systemctl=$(which systemctl)
|
||||||
|
|
||||||
|
if [[ -n "$systemd" ]] || [[ -n "$systemctl" ]] ; then
|
||||||
SYSTEMD_EXISTS=true
|
SYSTEMD_EXISTS=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# - Running in a terminal?
|
# - Running in a terminal?
|
||||||
# -
|
# -
|
||||||
if [[ -t 1 ]] ; then
|
if [[ -t 1 ]] ; then
|
||||||
|
|||||||
@@ -428,9 +428,11 @@ trap clean_up SIGHUP SIGINT SIGTERM
|
|||||||
|
|
||||||
# - Support systemd ?
|
# - Support systemd ?
|
||||||
# -
|
# -
|
||||||
if [[ "X$(which systemd)" = "X" ]]; then
|
|
||||||
SYSTEMD_EXISTS=false
|
SYSTEMD_EXISTS=false
|
||||||
else
|
systemd=$(which systemd)
|
||||||
|
systemctl=$(which systemctl)
|
||||||
|
|
||||||
|
if [[ -n "$systemd" ]] || [[ -n "$systemctl" ]] ; then
|
||||||
SYSTEMD_EXISTS=true
|
SYSTEMD_EXISTS=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user