summaryrefslogtreecommitdiff
path: root/compose
diff options
context:
space:
mode:
authorJeff Peeler <jpeeler@redhat.com>2015-03-19 12:05:22 -0400
committerJeff Peeler <jpeeler@redhat.com>2015-03-19 12:05:22 -0400
commit0dc0cf1b9ec68f1b2d53187e53115214e7bf4a5b (patch)
tree0a9965c3243869591a0c0a2a196e1ce3a0a1ea01 /compose
parentac1737124946cca1302582027c99d9dbc9fdb945 (diff)
downloadkolla-0dc0cf1b9ec68f1b2d53187e53115214e7bf4a5b.tar.gz
kolla-0dc0cf1b9ec68f1b2d53187e53115214e7bf4a5b.zip
Check for root privilege in start.sh
Change-Id: I38f6cf133b0ebf59a9595fb62868a81f731a0b85
Diffstat (limited to 'compose')
-rwxr-xr-xcompose/start.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/compose/start.sh b/compose/start.sh
index 1de83a5c6..fde554fc3 100755
--- a/compose/start.sh
+++ b/compose/start.sh
@@ -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
+
# Set SELinux to permissive
setenforce permissive