Project

General

Profile

1
#!/bin/bash
2
# Runs map with BIEN defaults
3

    
4
selfDir="$(dirname -- "$0")"
5

    
6
shopt -s nullglob
7

    
8
bien_password="$(cat "$selfDir/util/bien_password")"
9

    
10
# Defaults
11
if test -n "$in_engine"; then
12
    test -n "$in_host" || export in_host=localhost
13
    if test -z "$in_user"; then
14
        if test _"$(hostname)" = _nimoy -a _"$in_engine" = _MySQL; then
15
            test -n "${mysql_password+t}" || \
16
                . "$selfDir/util/env_password" mysql_password "your MySQL"
17
            export in_user="$USER" in_password="$mysql_password"
18
        else
19
            export in_user=bien in_password="$bien_password"
20
        fi
21
    fi
22
fi
23
test _"$out_database" = _vegbien && . "$selfDir/util/vegbien_dest"
24

    
25
"$selfDir/map" "$@"
(3-3/4)