make sure script is executed as root

This commit is contained in:
Aaron Murray 2020-01-24 18:43:41 -06:00
parent 3298133559
commit 32b0454d0e

View File

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