Merge "Remove requirement for root user in scripts"

This commit is contained in:
Jenkins 2015-07-13 04:08:36 +00:00 committed by Gerrit Code Review
commit 69338a94ba
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")/.."