From aff73bfda47dcf476a26a8f8fbc9f2ee2db61990 Mon Sep 17 00:00:00 2001 From: Samus CTO Date: Tue, 17 Mar 2015 18:04:55 +0100 Subject: [PATCH] [IMP] let bash resolve openerp-server path It isn't necessary to specify an absolute path, so let's stay flexible just in case. --- 8.0/Dockerfile | 2 +- 8.0/entrypoint.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/8.0/Dockerfile b/8.0/Dockerfile index 81ce914..7a8f302 100644 --- a/8.0/Dockerfile +++ b/8.0/Dockerfile @@ -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"] diff --git a/8.0/entrypoint.sh b/8.0/entrypoint.sh index f11a815..8ec01b4 100755 --- a/8.0/entrypoint.sh +++ b/8.0/entrypoint.sh @@ -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 "$@"