root/bin/psql_vegbien @ 342
1 | 194 | aaronmk | #!/bin/sh
|
---|---|---|---|
2 | 277 | aaronmk | # Accesses vegbien db
|
3 | 194 | aaronmk | |
4 | selfDir="$(dirname -- "$0")" |
||
5 | |||
6 | 276 | aaronmk | bien_password="$(cat "$selfDir/../config/bien_password")" |
7 | 230 | aaronmk | . "$selfDir/vegbien_dest" |
8 | 194 | aaronmk | export PGHOST="$out_host" PGUSER="$out_user" PGPASSWORD="$out_password" |
9 | |||
10 | psql --dbname="$out_database" "$@" |