aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSwapnil Kulkarni <me@coolsvap.net>2015-07-10 20:15:34 +0000
committerSwapnil Kulkarni <me@coolsvap.net>2015-07-10 20:33:18 +0000
commitaff8e49af6e1ccc9057629d0d09810378e2ec430 (patch)
tree6960e8221729488a36665fa4006ff4e71daf9c26
parent0953f57d6a174ddf65414542e0d468fd15fe808b (diff)
downloadkolla-aff8e49af6e1ccc9057629d0d09810378e2ec430.tar.gz
kolla-aff8e49af6e1ccc9057629d0d09810378e2ec430.zip
Remove requirement for root user in scripts
The following files had requirement for root user which can be removed as long as as the the user executing script is part of docker group Scripts updated tools/kolla tools/cleanup-containers Closes-Bug: #1473551 Change-Id: Ia4aea205f5da20fb1ded4f7a5d11eeebe5f40aa9
-rwxr-xr-xtools/cleanup-containers6
-rwxr-xr-xtools/kolla5
2 files changed, 0 insertions, 11 deletions
diff --git a/tools/cleanup-containers b/tools/cleanup-containers
index 8e6c7ff31..efdd84376 100755
--- a/tools/cleanup-containers
+++ b/tools/cleanup-containers
@@ -1,11 +1,5 @@
#!/bin/bash
-# Check if user is root
-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")/.."
diff --git a/tools/kolla b/tools/kolla
index 62193d9d9..e0965a0d1 100755
--- a/tools/kolla
+++ b/tools/kolla
@@ -2,11 +2,6 @@
#
# This script can be used to interact with kolla.
-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")/.."