Root check

This commit is contained in:
Kilian 2021-07-28 17:23:03 +02:00
parent 37b600195c
commit cca133b2a2

View File

@ -1,5 +1,10 @@
#!/bin/bash
if [ "$(id -u)" != 0 ]; then
echo -e "\033[0;31mThis script must be run with root privileges"
exit 1
fi
./october_install_prereq.sh
if [ $? != 0 ]; then
exit 1