aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-07-13 04:08:36 +0000
committerGerrit Code Review <review@openstack.org>2015-07-13 04:08:36 +0000
commit69338a94ba0969241a8b669eba824956912d71c4 (patch)
tree6ff869948f7192755c6f065a3bff868fbcbd2aa1
parent972cec6407e4ef79b682480701f3687b0b641bf1 (diff)
parentaff8e49af6e1ccc9057629d0d09810378e2ec430 (diff)
downloadkolla-69338a94ba0969241a8b669eba824956912d71c4.tar.gz
kolla-69338a94ba0969241a8b669eba824956912d71c4.zip
Merge "Remove requirement for root user in scripts"
-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 f26aaf801..ff05d108a 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")/.."