Revision 1951
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 |
. "$bin/env_password" mysql_password "your MySQL password" |
|
17 |
# will exit this script if password not set
|
|
16 |
. "$bin/env_password" mysql_password "your MySQL password" || exit
|
|
17 |
# 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 |
else in_database=bien2_staging |
Also available in: Unified diff
env_password: return instead of exit if password not yet stored, in case user is running it from a shell without the initial "-" argument. (This would be the case if the user is just testing out the script, instead of using a command that env_password directs them to run.)