use hard path to localrc

This commit is contained in:
Anthony Young 2011-10-12 07:17:11 +00:00
parent 7a549f40f5
commit 6015c82a2b

View file

@ -43,6 +43,9 @@ if [ ! -d $FILES ]; then
exit 1
fi
# Keep track of the current working directory.
CWD=`pwd`
# OpenStack is designed to be run as a regular user (Dashboard will fail to run
# as root, since apache refused to startup serve content from root user). If
# stack.sh is run as root, it automatically creates a stack user with
@ -152,6 +155,8 @@ function read_password {
var=$1; msg=$2
pw=${!var}
localrc=$CWD/localrc
# If the password is not defined yet, proceed to prompt user for a password.
if [ ! $pw ]; then
# If there is no localrc file, create one