File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,7 +134,9 @@ rm -rf $DIRS_TO_CLEAN
134134
135135# Clean up files
136136
137- FILES_TO_CLEAN=" .localrc.auto docs/files docs/html shocco/ stack-screenrc test*.conf* test.ini*"
137+ FILES_TO_CLEAN=" .localrc.auto .localrc.password "
138+ FILES_TO_CLEAN+=" docs/files docs/html shocco/ "
139+ FILES_TO_CLEAN+=" stack-screenrc test*.conf* test.ini* "
138140FILES_TO_CLEAN+=" .stackenv .prereqs"
139141
140142for file in $FILES_TO_CLEAN ; do
Original file line number Diff line number Diff line change @@ -562,7 +562,7 @@ function read_password {
562562 if [[ -f $RC_DIR /localrc ]]; then
563563 localrc=$TOP_DIR /localrc
564564 else
565- localrc=$TOP_DIR /.localrc.auto
565+ localrc=$TOP_DIR /.localrc.password
566566 fi
567567
568568 # If the password is not defined yet, proceed to prompt user for a password.
@@ -572,13 +572,15 @@ function read_password {
572572 touch $localrc
573573 fi
574574
575- # Presumably if we got this far it can only be that our localrc is missing
576- # the required password. Prompt user for a password and write to localrc.
575+ # Presumably if we got this far it can only be that our
576+ # localrc is missing the required password. Prompt user for a
577+ # password and write to localrc.
578+
577579 echo ' '
578580 echo ' ################################################################################'
579581 echo $msg
580582 echo ' ################################################################################'
581- echo " This value will be written to your localrc file so you don't have to enter it "
583+ echo " This value will be written to ${ localrc} file so you don't have to enter it "
582584 echo " again. Use only alphanumeric characters."
583585 echo " If you leave this blank, a random default value will be used."
584586 pw=" "
Original file line number Diff line number Diff line change @@ -103,6 +103,11 @@ HORIZON_APACHE_ROOT="/dashboard"
103103# be disabled for automated testing by setting this value to False.
104104USE_SCREEN=True
105105
106+ # Passwords generated by interactive devstack runs
107+ if [[ -r $RC_DIR /.localrc.password ]]; then
108+ source $RC_DIR /.localrc.password
109+ fi
110+
106111# allow local overrides of env variables, including repo config
107112if [[ -f $RC_DIR /localrc ]]; then
108113 # Old-style user-supplied config
You can’t perform that action at this time.
0 commit comments