| ... | ... |
@@ -362,7 +362,11 @@ function read_password {
|
| 362 | 362 |
var=$1; msg=$2 |
| 363 | 363 |
pw=${!var}
|
| 364 | 364 |
|
| 365 |
- localrc=$TOP_DIR/localrc |
|
| 365 |
+ if [[ -f $RC_DIR/localrc ]]; then |
|
| 366 |
+ localrc=$TOP_DIR/localrc |
|
| 367 |
+ else |
|
| 368 |
+ localrc=$TOP_DIR/.localrc.auto |
|
| 369 |
+ fi |
|
| 366 | 370 |
|
| 367 | 371 |
# If the password is not defined yet, proceed to prompt user for a password. |
| 368 | 372 |
if [ ! $pw ]; then |