Added support for Amazon RDS Postgres, Custom Postgres server, Linked Postgres container and default to local Postgres
This commit is contained in:
parent
0afa334549
commit
e8fe1a2cc2
@ -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:=${RDS_HOSTNAME:=${PGHOST:=${DB_PORT_5432_TCP_ADDR:='localhost'}}}}
|
||||||
: ${PGPORT:=$DB_PORT_5432_TCP_PORT}
|
: ${PGPORT:=${RDS_PORT:=${PGPORT:=${DB_PORT_5432_TCP_PORT:=5432}}}}
|
||||||
: ${PGUSER:=${DB_ENV_POSTGRES_USER:='postgres'}}
|
: ${PGUSER:=${RDS_USERNAME:=${PGUSER:=${DB_ENV_POSTGRES_USER:='postgres'}}}}
|
||||||
: ${PGPASSWORD:=$DB_ENV_POSTGRES_PASSWORD}
|
: ${PGPASSWORD:=${RDS_PASSWORD:=${PGPASSWORD:=$DB_ENV_POSTGRES_PASSWORD}}}
|
||||||
export PGHOST PGPORT PGUSER PGPASSWORD
|
export PGHOST PGPORT PGUSER PGPASSWORD
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
Loading…
Reference in New Issue
Block a user