[IMP] let bash resolve openerp-server path

It isn't necessary to specify an absolute path, so let's stay flexible
just in case.
This commit is contained in:
Samus CTO 2015-03-17 18:04:55 +01:00
parent 129639a5e7
commit aff73bfda4
2 changed files with 3 additions and 3 deletions

View File

@ -45,4 +45,4 @@ ENV OPENERP_SERVER /etc/odoo/openerp-server.conf
USER odoo
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/usr/bin/openerp-server"]
CMD ["openerp-server"]

View File

@ -12,10 +12,10 @@ export PGHOST PGPORT PGUSER PGPASSWORD
case "$1" in
--)
shift
exec /usr/bin/openerp-server "$@"
exec openerp-server "$@"
;;
-*)
exec /usr/bin/openerp-server "$@"
exec openerp-server "$@"
;;
*)
exec "$@"