use hard path to localrc
This commit is contained in:
parent
7a549f40f5
commit
6015c82a2b
1 changed files with 5 additions and 0 deletions
5
stack.sh
5
stack.sh
|
@ -43,6 +43,9 @@ if [ ! -d $FILES ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
# 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
|
# 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
|
# stack.sh is run as root, it automatically creates a stack user with
|
||||||
|
@ -152,6 +155,8 @@ function read_password {
|
||||||
var=$1; msg=$2
|
var=$1; msg=$2
|
||||||
pw=${!var}
|
pw=${!var}
|
||||||
|
|
||||||
|
localrc=$CWD/localrc
|
||||||
|
|
||||||
# If the password is not defined yet, proceed to prompt user for a password.
|
# If the password is not defined yet, proceed to prompt user for a password.
|
||||||
if [ ! $pw ]; then
|
if [ ! $pw ]; then
|
||||||
# If there is no localrc file, create one
|
# If there is no localrc file, create one
|
||||||
|
|
Loading…
Reference in a new issue