make sure script is executed as root
This commit is contained in:
1 parent
3298133559
commit
32b0454d0e
1 file changed
+5
@@ -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=""
|
||||
|
||||
Reference in new issue
Block a user