added DEBUG option to enable bash debugging

This commit is contained in:
Sameer Naik
2015-11-28 21:19:42 +05:30
parent a1ca18b780
commit d92102d951
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -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
+1
View File
@@ -4,6 +4,7 @@ PostgreSQL:
ports:
- "5432:5432"
environment:
- DEBUG=false
- DB_USER=
- DB_PASS=
- DB_NAME=
+2
View File
@@ -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="$@"