From 6015c82a2b3f0221f1f85e530878d2d0b70a2980 Mon Sep 17 00:00:00 2001 From: Anthony Young Date: Wed, 12 Oct 2011 07:17:11 +0000 Subject: [PATCH] use hard path to localrc --- stack.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stack.sh b/stack.sh index cdeb8a0..32b7a0c 100755 --- a/stack.sh +++ b/stack.sh @@ -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