From 0ed964e2f901901b059eec1203043927f276c0a5 Mon Sep 17 00:00:00 2001 From: Mike Dillon Date: Tue, 10 Mar 2015 18:56:53 -0700 Subject: [PATCH] Support "--" as documented If "$1" starts with "-", then act like "$@" starts with /usr/bin/openerp-server --config=/etc/odoo/openerp-server.conf --- 8.0/entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/8.0/entrypoint.sh b/8.0/entrypoint.sh index e56a423..f0afda8 100755 --- a/8.0/entrypoint.sh +++ b/8.0/entrypoint.sh @@ -9,4 +9,8 @@ set -e : ${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 "$@"