mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-06-27 18:42:46 +08:00
added DEBUG option to enable bash debugging
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
- complete rewrite of the README
|
||||
- add support for creating backups using `pg_basebackup`
|
||||
- removed `PG_LOCALE` option (doesn't work!)
|
||||
- added `DEBUG` option to enable bash debugging
|
||||
|
||||
**9.4-2**
|
||||
- added replication options
|
||||
|
||||
@@ -4,6 +4,7 @@ PostgreSQL:
|
||||
ports:
|
||||
- "5432:5432"
|
||||
environment:
|
||||
- DEBUG=false
|
||||
- DB_USER=
|
||||
- DB_PASS=
|
||||
- DB_NAME=
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
set -e
|
||||
source ${PG_APP_HOME}/functions
|
||||
|
||||
[[ ${DEBUG} == true ]] && set -x
|
||||
|
||||
# allow arguments to be passed to postgres
|
||||
if [[ ${1:0:1} = '-' ]]; then
|
||||
EXTRA_ARGS="$@"
|
||||
|
||||
Reference in New Issue
Block a user