Merge "Remove requirement for root user in scripts"
This commit is contained in:
commit
69338a94ba
@ -1,11 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/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
|
# Move to top level directory
|
||||||
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
|
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
|
||||||
cd "$(dirname "$REAL_PATH")/.."
|
cd "$(dirname "$REAL_PATH")/.."
|
||||||
|
@ -2,11 +2,6 @@
|
|||||||
#
|
#
|
||||||
# This script can be used to interact with kolla.
|
# 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
|
# Move to top level directory
|
||||||
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
|
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
|
||||||
cd "$(dirname "$REAL_PATH")/.."
|
cd "$(dirname "$REAL_PATH")/.."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user