check for systemd

This commit is contained in:
Aaron Murray 2020-04-20 07:09:18 -05:00
parent 0f692e576f
commit 11e2aa3f35

12
install
View File

@ -13,12 +13,18 @@
# https://github.com/armbian/config/blob/master/debian-software # https://github.com/armbian/config/blob/master/debian-software
# https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/ # 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 if [[ $(id -u) -ne 0 ]]; then
echo "This script must be executed as root or using sudo." echo "This script must be executed as root or using sudo."
exit 99 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 fi
declare -l codename declare -l codename