From d19c4b6bfdfe6ce6d00372e402f166ef9d0b8a22 Mon Sep 17 00:00:00 2001 From: remi-filament <30716308+remi-filament@users.noreply.github.com> Date: Wed, 30 Sep 2020 14:09:18 +0200 Subject: [PATCH] Add autoinstall FR lang in case DB does not exist --- entrypoint.sh | 2 ++ odoo.conf | 1 + 2 files changed, 3 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index ac7ca43..65e3067 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -32,6 +32,8 @@ export PGPASSWORD=$value if ! psql -l | grep $PGDATABASE; then echo "Database $PGDATABASE does not exist" + DB_ARGS+=("--load-language") + DB_ARGS+=("fr_FR") else psql -qc 'CREATE EXTENSION IF NOT EXISTS unaccent' fi diff --git a/odoo.conf b/odoo.conf index dc219b5..2ea40b2 100644 --- a/odoo.conf +++ b/odoo.conf @@ -28,6 +28,7 @@ db_name = odoo ; smtp_server = localhost ; smtp_ssl = False ; smtp_user = False +unaccent = True ; workers = 0 ; xmlrpc = True ; xmlrpc_interface = -- GitLab