From de41fd1d9dbceb780f52fce0c46da35d159f563d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Payet?= Date: Fri, 25 Oct 2019 10:27:33 -1000 Subject: [PATCH] Update entrypoint.sh Fix the error wait-for-psql.py: the following arguments are required: --db_host, --db_port, --db_user, --db_password in case we only set those variables (db_host,db_port,db_user,db_password) in odoo conf --- 13.0/entrypoint.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/13.0/entrypoint.sh b/13.0/entrypoint.sh index 5638e6d..bd2d136 100755 --- a/13.0/entrypoint.sh +++ b/13.0/entrypoint.sh @@ -29,8 +29,12 @@ case "$1" in if [[ "$1" == "scaffold" ]] ; then exec odoo "$@" else - wait-for-psql.py ${DB_ARGS[@]} --timeout=30 - exec odoo "$@" "${DB_ARGS[@]}" + if [ ${#DB_ARGS[@]} -eq 0 ] ; then + exec odoo "$@" + else + wait-for-psql.py ${DB_ARGS[@]} --timeout=30 + exec odoo "$@" "${DB_ARGS[@]}" + fi fi ;; -*)