commit | d462295368abfd2c749d03f45b82e3cad7362bfe | [log] [tgz] |
---|---|---|
author | Jesse Andrews <anotherjesse@gmail.com> | Wed Sep 28 14:08:26 2011 -0700 |
committer | Jesse Andrews <anotherjesse@gmail.com> | Wed Sep 28 14:08:36 2011 -0700 |
tree | c6c7c1d7d1e83f746d878af8fdb0a1f95226bc1f | |
parent | 3d6aab9c57ffc97c4962728e0326adcfeb928aaa [diff] [blame] |
make sure user isn't running as root
diff --git a/stack.sh b/stack.sh index f21b371..a4f14b8 100755 --- a/stack.sh +++ b/stack.sh
@@ -37,6 +37,15 @@ exit 1 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 # ========