diff --git a/8.0/entrypoint.sh b/8.0/entrypoint.sh index 64dff75..5e10e31 100755 --- a/8.0/entrypoint.sh +++ b/8.0/entrypoint.sh @@ -11,6 +11,11 @@ export PGHOST PGPORT PGUSER PGPASSWORD # if the first arg starts with '-', prepend 'openerp-server' to $@ if [ "${1:0:1}" = '-' ]; then + # drop the first arg if it is '--' + if [ "$1" = '--' ]; then + shift + fi + set -- openerp-server "$@" fi