Check for root privilege in start.sh

This change was lost in 888bb9cc8c.
Both modprobe and setenforce require root, so I think this is a good
sanity check.

Change-Id: I431df44e0fed4a981df96a9a98bfbb5c350e49ac
This commit is contained in:
Jeff Peeler 2015-03-21 02:18:01 -04:00
parent 0d9a53470d
commit 07f5999276

View File

@ -6,6 +6,11 @@
# services are up. You will also need these in order to interact with the
# installation once started.
if [[ $EUID -ne 0 ]]; then
echo "You must execute this script as root." 1>&2
exit 1
fi
# Move to top level directory
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
cd "$(dirname "$REAL_PATH")/.."