[IMP] use ENTRYPOINT instead of cmd and permit giving command arguments
This commit is contained in:
parent
a86b7e6dbc
commit
22de85b69e
@ -45,4 +45,4 @@ COPY ./openerp-server.conf /etc/odoo/
|
|||||||
# Mount /var/lib/odoo to allow restoring filestore
|
# Mount /var/lib/odoo to allow restoring filestore
|
||||||
VOLUME ["/var/lib/odoo"]
|
VOLUME ["/var/lib/odoo"]
|
||||||
|
|
||||||
CMD ["/run.sh"]
|
ENTRYPOINT ["/run.sh"]
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
[ "$1" != "--" ] && exec "$@" || shift
|
||||||
|
|
||||||
CONFIG_FILE=/etc/odoo/openerp-server.conf
|
CONFIG_FILE=/etc/odoo/openerp-server.conf
|
||||||
|
|
||||||
# sets a configuration variable in openerp-server.conf
|
# sets a configuration variable in openerp-server.conf
|
||||||
@ -21,4 +23,4 @@ set_config "db_user" $DB_ENV_POSTGRES_USER
|
|||||||
set_config "db_password" $DB_ENV_POSTGRES_PASSWORD
|
set_config "db_password" $DB_ENV_POSTGRES_PASSWORD
|
||||||
|
|
||||||
# start Odoo
|
# start Odoo
|
||||||
exec gosu odoo /usr/bin/openerp-server --config $CONFIG_FILE
|
exec gosu odoo /usr/bin/openerp-server --config $CONFIG_FILE "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user