Revision 1090
Added by Aaron Marcuse-Kubitza almost 13 years ago
map | ||
---|---|---|
13 | 13 |
test -n "$in_host" || export in_host=localhost |
14 | 14 |
if test -z "$in_user"; then |
15 | 15 |
if test _"$(hostname)" = _nimoy -a _"$in_engine" = _MySQL; then |
16 |
test -n "${mysql_password+t}" || \
|
|
17 |
. "$binDir/env_password" mysql_password "your MySQL"
|
|
16 |
. "$binDir/env_password" mysql_password "your MySQL password"
|
|
17 |
# will exit this script if password not set
|
|
18 | 18 |
export in_user="$USER" in_password="$mysql_password" |
19 | 19 |
if test "$in_database" = SALVIAS; then in_database=salvias_plots |
20 | 20 |
elif test "$in_database" = NYBG; then in_database=bien2_staging |
Also available in: Unified diff
env_password: Print all messages to /dev/tty so the user sees them even if stderr is redirected to a log file. Exit if password not already set, because e.g. scripts run in the background will not be able to prompt for it.