docker-odoo/9.0/entrypoint.sh
Aaron Bohy 6e12a64947 [ADD] Odoo 9.0
Closes #32.
2015-10-08 14:56:09 +02:00

25 lines
399 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
case "$1" in
--)
shift
exec openerp-server "$@"
;;
-*)
exec openerp-server "$@"
;;
*)
exec "$@"
esac
exit 1