Project

General

Profile

1
#!/bin/bash
2

    
3
vegbien_dest_main ()
4
{
5
    local self="${BASH_SOURCE[0]}"
6
    local selfDir="$(dirname -- "$self")"
7
    
8
    # Was run without initial "."
9
    if test "${BASH_LINENO[1]}" = 0 -a "${BASH_ARGV[0]}" != "$self"; then
10
        echo "Usage: . $self (note initial \".\")"|fold -s >&2
11
        return 2
12
    fi
13
    
14
    : ${prefix=out_}
15
    
16
    export \
17
    ${prefix}engine=PostgreSQL \
18
    ${prefix}host=localhost \
19
    ${prefix}user=bien \
20
    ${prefix}password="$(cat "$selfDir/../config/bien_password")" \
21
    ${prefix}database=vegbien \
22
    ${prefix}schemas=temp,public,TNRS,functions,py_functions
23
}
24
vegbien_dest_main "$@"
(57-57/60)