docker-odoo/8.0/entrypoint.sh
Mike Dillon 45bfe40dcb Change to ENTRYPOINT + CMD
The addition of `set -e` in the run.sh script exposed the fact that it was
erroring out when `$# -eq 0`.
2015-03-10 17:46:12 -07:00

13 lines
285 B
Bash
Executable File

#!/bin/bash
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}
export PGHOST PGPORT PGUSER PGPASSWORD
exec "$@"