From 3b4bc23baa5f62d057863a5dd7c9f4a09bccd19a Mon Sep 17 00:00:00 2001 From: kiblik <5609770+kiblik@users.noreply.github.com> Date: Tue, 2 Jul 2024 20:22:40 +0200 Subject: [PATCH 1/2] fix(exit in bash): Fix handling exit in initializer --- docker/entrypoint-initializer.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/entrypoint-initializer.sh b/docker/entrypoint-initializer.sh index 08e77dc46c..178349073f 100755 --- a/docker/entrypoint-initializer.sh +++ b/docker/entrypoint-initializer.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e # needed to handle "exit" correctly + . /secret-file-loader.sh . /reach_database.sh From 98955a0d72ece6b153f1ad0552043043c5a0b81c Mon Sep 17 00:00:00 2001 From: kiblik <5609770+kiblik@users.noreply.github.com> Date: Tue, 2 Jul 2024 21:43:50 +0200 Subject: [PATCH 2/2] feat(db-checker): Extension of "db reachable" --- docker/reach_database.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker/reach_database.sh b/docker/reach_database.sh index 819f69282e..2edcdc9eca 100644 --- a/docker/reach_database.sh +++ b/docker/reach_database.sh @@ -13,4 +13,11 @@ wait_for_database_to_be_reachable() { exit 1 fi done + cat <