[IMP] permit: docker run odoo --arg & docker run odoo -- --arg
This commit is contained in:
parent
13fd5a1128
commit
1740d8a606
15
8.0/run.sh
15
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
|
||||
|
Loading…
Reference in New Issue
Block a user