[IMP] Set OPENERP_SERVER to specify config file
This commit is contained in:
parent
6a6ceb5b10
commit
13fd5a1128
@ -38,6 +38,9 @@ VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
|
||||
# Expose Odoo services
|
||||
EXPOSE 8069 8071
|
||||
|
||||
# Set the default config file
|
||||
ENV OPENERP_SERVER /etc/odoo/openerp-server.conf
|
||||
|
||||
# Set default user when running the container
|
||||
USER odoo
|
||||
|
||||
|
@ -12,4 +12,4 @@ export PGHOST PGPORT PGUSER PGPASSWORD
|
||||
[ "$1" != "--" ] && exec "$@"
|
||||
|
||||
shift
|
||||
exec /usr/bin/openerp-server --config=/etc/odoo/openerp-server.conf "$@"
|
||||
exec /usr/bin/openerp-server "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user