From 1740d8a60622b641d740bbf5667d099cc2bf6543 Mon Sep 17 00:00:00 2001 From: Samus CTO Date: Tue, 17 Mar 2015 17:45:37 +0100 Subject: [PATCH] [IMP] permit: docker run odoo --arg & docker run odoo -- --arg --- 8.0/run.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/8.0/run.sh b/8.0/run.sh index ade3963..f11a815 100755 --- a/8.0/run.sh +++ b/8.0/run.sh @@ -9,7 +9,16 @@ set -e : ${PGPASSWORD:=$DB_ENV_POSTGRES_PASSWORD} export PGHOST PGPORT PGUSER PGPASSWORD -[ "$1" != "--" ] && exec "$@" +case "$1" in + --) + shift + exec /usr/bin/openerp-server "$@" + ;; + -*) + exec /usr/bin/openerp-server "$@" + ;; + *) + exec "$@" +esac -shift -exec /usr/bin/openerp-server "$@" +exit 1