docker-odoo/8.0/entrypoint.sh
Mike Dillon 0ed964e2f9 Support "--" as documented
If "$1" starts with "-", then act like "$@" starts with /usr/bin/openerp-server
--config=/etc/odoo/openerp-server.conf
2015-03-10 18:56:53 -07:00

17 lines
395 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
if [ "${1:0:1}" = '-' ]; then
set -- /usr/bin/openerp-server --config=/etc/odoo/openerp-server.conf "$@"
fi
exec "$@"