check for systemd
This commit is contained in:
parent
0f692e576f
commit
11e2aa3f35
8
install
8
install
@ -13,7 +13,7 @@
|
||||
# https://github.com/armbian/config/blob/master/debian-software
|
||||
# https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/
|
||||
#
|
||||
# version: 1.0.3
|
||||
# version: 1.0.4
|
||||
#
|
||||
|
||||
if [[ $(id -u) -ne 0 ]]; then
|
||||
@ -21,6 +21,12 @@ if [[ $(id -u) -ne 0 ]]; then
|
||||
exit 99
|
||||
fi
|
||||
|
||||
systemd="$(ps --no-headers -o comm 1)"
|
||||
if [ ! "${systemd}" = "systemd" ]; then
|
||||
echo "This system is not running systemd. Exiting..."
|
||||
exit 100
|
||||
fi
|
||||
|
||||
declare -l codename
|
||||
declare -l omvCodename
|
||||
declare -l omvInstall=""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user