Skip to content

Commit d253521

Browse files
committed
Add default_psql_opts, sourceable by the other scripts.
1 parent f99097f commit d253521

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: default_psql_opts.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
# You can override these if you like.
4+
5+
if [[ -z "${PSQL_USER}" ]]; then
6+
PSQL_USER="postgres"
7+
fi
8+
9+
if [[ -z "${PSQL_OPTS}" ]]; then
10+
PSQL_OPTS="-U ${PSQL_USER} -d postgres --quiet"
11+
fi

0 commit comments

Comments
 (0)