make sure user isn't running as root
This commit is contained in:
parent
3d6aab9c57
commit
d462295368
1 changed files with 9 additions and 0 deletions
9
stack.sh
9
stack.sh
|
@ -37,6 +37,15 @@ if [ ! -d $FILES ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# you need to run this as a regular user with sudo priviledges
|
||||||
|
if [[ $EUID -eq 0 ]]; then
|
||||||
|
echo "This script cannot be run as root." 1>&2
|
||||||
|
echo "You should run this script as the user you wish openstack to run as" 1>&2
|
||||||
|
echo "The user will need to be a sudoer (without password)" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Settings
|
# Settings
|
||||||
# ========
|
# ========
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue