From c61a0263262d61467dc705f194f1bb7e85adaf53 Mon Sep 17 00:00:00 2001 From: Johan Wassberg Date: Wed, 21 Aug 2024 14:10:03 +0200 Subject: [PATCH] Try a few times more --- .../etc/sunet-machine-healthy/health-checks.d/app.check | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/common-app/overlay/etc/sunet-machine-healthy/health-checks.d/app.check b/common-app/overlay/etc/sunet-machine-healthy/health-checks.d/app.check index bf92e14..20ef773 100755 --- a/common-app/overlay/etc/sunet-machine-healthy/health-checks.d/app.check +++ b/common-app/overlay/etc/sunet-machine-healthy/health-checks.d/app.check @@ -3,4 +3,11 @@ set -e set -o pipefail -curl -k https://localhost:443 | jq + +while true; do + if curl -k https://localhost:443 | jq ; then + exit 0 + fi + + sleep 3 +done