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