Update env vars with defaults
This commit is contained in:
parent
b3d55d2959
commit
dfa573a9c1
@ -3,10 +3,10 @@
|
||||
set -e
|
||||
|
||||
# set odoo database host, port, user and password
|
||||
: ${PGHOST:=$DB_PORT_5432_TCP_ADDR}
|
||||
: ${PGPORT:=$DB_PORT_5432_TCP_PORT}
|
||||
: ${PGUSER:=${DB_ENV_POSTGRES_USER:='postgres'}}
|
||||
: ${PGPASSWORD:=$DB_ENV_POSTGRES_PASSWORD}
|
||||
: ${PGHOST:=${DB_PORT_5432_TCP_ADDR:='db'}}
|
||||
: ${PGPORT:=${DB_PORT_5432_TCP_PORT:=5432}}
|
||||
: ${PGUSER:=${DB_ENV_POSTGRES_USER:=${POSTGRES_USER:='postgres'}}}
|
||||
: ${PGPASSWORD:=${DB_ENV_POSTGRES_PASSWORD:=$POSTGRES_PASSWORD}}
|
||||
export PGHOST PGPORT PGUSER PGPASSWORD
|
||||
|
||||
case "$1" in
|
||||
|
Loading…
Reference in New Issue
Block a user