2014-12-10 06:20:15 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2015-03-08 01:18:12 -05:00
|
|
|
set -e
|
|
|
|
|
2015-02-27 09:17:44 -05:00
|
|
|
# set odoo database host, port, user and password
|
2015-03-08 01:18:12 -05:00
|
|
|
: ${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
|
2014-12-10 06:20:15 -05:00
|
|
|
|
2015-02-27 08:41:23 -05:00
|
|
|
[ "$1" != "--" ] && exec "$@"
|
|
|
|
|
|
|
|
shift
|
2015-03-02 09:19:43 -05:00
|
|
|
exec /usr/bin/openerp-server --config=/etc/odoo/openerp-server.conf "$@"
|