make sure script is executed as root
This commit is contained in:
parent
3298133559
commit
32b0454d0e
5
install
5
install
@ -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=""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user