diff --git a/12.0/entrypoint.sh b/12.0/entrypoint.sh index 6dd42c4..f802bcb 100755 --- a/12.0/entrypoint.sh +++ b/12.0/entrypoint.sh @@ -2,6 +2,10 @@ set -e +if [ -v PASSWORD_FILE ]; then + PASSWORD="$(< $PASSWORD_FILE)" +fi + # set the postgres database host, port, user and password according to the environment # and pass them as arguments to the odoo process if not present in the config file : ${HOST:=${DB_PORT_5432_TCP_ADDR:='db'}} diff --git a/13.0/entrypoint.sh b/13.0/entrypoint.sh index 6dd42c4..f802bcb 100755 --- a/13.0/entrypoint.sh +++ b/13.0/entrypoint.sh @@ -2,6 +2,10 @@ set -e +if [ -v PASSWORD_FILE ]; then + PASSWORD="$(< $PASSWORD_FILE)" +fi + # set the postgres database host, port, user and password according to the environment # and pass them as arguments to the odoo process if not present in the config file : ${HOST:=${DB_PORT_5432_TCP_ADDR:='db'}} diff --git a/14.0/entrypoint.sh b/14.0/entrypoint.sh index 6dd42c4..f802bcb 100755 --- a/14.0/entrypoint.sh +++ b/14.0/entrypoint.sh @@ -2,6 +2,10 @@ set -e +if [ -v PASSWORD_FILE ]; then + PASSWORD="$(< $PASSWORD_FILE)" +fi + # set the postgres database host, port, user and password according to the environment # and pass them as arguments to the odoo process if not present in the config file : ${HOST:=${DB_PORT_5432_TCP_ADDR:='db'}}