docker-odoo/10.0/entrypoint.sh
Veikko Väätäjä ca3ae976b3 Fixed startup command.
2016-10-10 14:39:53 +03:00

25 lines
379 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 odoo "$@"
;;
-*)
exec odoo "$@"
;;
*)
exec "$@"
esac
exit 1