[IMP] permit: docker run odoo --arg & docker run odoo -- --arg

This commit is contained in:
Samus CTO 2015-03-17 17:45:37 +01:00
parent 13fd5a1128
commit 1740d8a606

View File

@ -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