Support "--" as documented
If "$1" starts with "-", then act like "$@" starts with /usr/bin/openerp-server --config=/etc/odoo/openerp-server.conf
This commit is contained in:
parent
45bfe40dcb
commit
0ed964e2f9
@ -9,4 +9,8 @@ set -e
|
|||||||
: ${PGPASSWORD:=$DB_ENV_POSTGRES_PASSWORD}
|
: ${PGPASSWORD:=$DB_ENV_POSTGRES_PASSWORD}
|
||||||
export PGHOST PGPORT PGUSER PGPASSWORD
|
export PGHOST PGPORT PGUSER PGPASSWORD
|
||||||
|
|
||||||
|
if [ "${1:0:1}" = '-' ]; then
|
||||||
|
set -- /usr/bin/openerp-server --config=/etc/odoo/openerp-server.conf "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user