Root check
This commit is contained in:
parent
37b600195c
commit
cca133b2a2
@ -1,5 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/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
|
./october_install_prereq.sh
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user