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
This commit is contained in:
Swapnil Kulkarni 2015-07-10 20:15:34 +00:00
parent 0953f57d6a
commit aff8e49af6
2 changed files with 0 additions and 11 deletions

View File

@ -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")/.."

View File

@ -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")/.."