From 52fe7bf26df068c656529cdd631650f101f54442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com> Date: Mon, 2 Aug 2021 09:28:05 +0200 Subject: [PATCH] Fix indentation --- entrypoint.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 65e3067..8290eb7 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -16,7 +16,7 @@ function check_config() { if ! grep -q -E "^\s*\b${param}\b\s*=" /opt/odoo/etc/odoo.conf ; then DB_ARGS+=("--${param}") DB_ARGS+=("${value}") - else + else value=`grep "^\s*\b${param}\b\s*=" /opt/odoo/etc/odoo.conf | cut -d "=" -f 2 | xargs` fi; } @@ -31,11 +31,11 @@ check_config "db_password" "$PASSWORD" export PGPASSWORD=$value if ! psql -l | grep $PGDATABASE; then - echo "Database $PGDATABASE does not exist" - DB_ARGS+=("--load-language") - DB_ARGS+=("fr_FR") + echo "Database $PGDATABASE does not exist" + DB_ARGS+=("--load-language") + DB_ARGS+=("fr_FR") else - psql -qc 'CREATE EXTENSION IF NOT EXISTS unaccent' + psql -qc 'CREATE EXTENSION IF NOT EXISTS unaccent' fi case "$1" in -- GitLab