root/bin/postgres_vegbien @ 1065
1 | 378 | aaronmk | #!/bin/sh
|
---|---|---|---|
2 | # Runs a PostgreSQL command on the vegbien db
|
||
3 | |||
4 | selfDir="$(dirname -- "$0")" |
||
5 | |||
6 | bien_password="$(cat "$selfDir/../config/bien_password")" |
||
7 | . "$selfDir/vegbien_dest" |
||
8 | export PGHOST="$out_host" PGUSER="$out_user" PGPASSWORD="$out_password" \ |
||
9 | PGDATABASE="$out_database" |
||
10 | |||
11 | exec "$@" |