root/bin/psql_script_vegbien @ 7025
1 | 6258 | aaronmk | #!/bin/bash
|
---|---|---|---|
2 | 3392 | aaronmk | # Runs script on vegbien db
|
3 | 6245 | aaronmk | # Usage: env [no_search_path=1] self [psql_opts...]
|
4 | 3392 | aaronmk | |
5 | selfDir="$(dirname -- "$0")" |
||
6 | |||
7 | 6245 | aaronmk | . "$selfDir/vegbien_dest" |
8 | |||
9 | 6949 | aaronmk | searchPath="\"${schemas//,/\",\"}\"" |
10 | 6245 | aaronmk | |
11 | (test -z "$no_search_path" && echo "SET search_path TO $searchPath;"; cat)\ |
||
12 | 6829 | aaronmk | |nice -n +5 "$selfDir/psql_vegbien" --set ON_ERROR_STOP=1 --quiet "$@" |