0fbea3c734
* Odoo version 10 created. Release 20161007. * Fixed old path. * Fixed startup command. * Changed to new naming convention and environment variables. Closes #75
25 lines
379 B
Bash
Executable File
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
|