This commit is contained in:
Sebastián Ramírez 2016-10-26 05:41:40 +00:00 committed by GitHub
commit cd9ad8fec4

View File

@ -3,10 +3,10 @@
set -e set -e
# set odoo database host, port, user and password # set odoo database host, port, user and password
: ${PGHOST:=$DB_PORT_5432_TCP_ADDR} : ${PGHOST:=${DB_PORT_5432_TCP_ADDR:='db'}}
: ${PGPORT:=$DB_PORT_5432_TCP_PORT} : ${PGPORT:=${DB_PORT_5432_TCP_PORT:=5432}}
: ${PGUSER:=${DB_ENV_POSTGRES_USER:='postgres'}} : ${PGUSER:=${DB_ENV_POSTGRES_USER:=${POSTGRES_USER:='postgres'}}}
: ${PGPASSWORD:=$DB_ENV_POSTGRES_PASSWORD} : ${PGPASSWORD:=${DB_ENV_POSTGRES_PASSWORD:=$POSTGRES_PASSWORD}}
export PGHOST PGPORT PGUSER PGPASSWORD export PGHOST PGPORT PGUSER PGPASSWORD
case "$1" in case "$1" in