From 91317cea13d12b48a2d2b3f038a6ccfa5d25d00c Mon Sep 17 00:00:00 2001 From: olli Date: Fri, 23 Jun 2023 10:10:20 +0200 Subject: [PATCH] better SSL Check error handling --- traefik.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/traefik.yml b/traefik.yml index 7a8eb43..519fab6 100644 --- a/traefik.yml +++ b/traefik.yml @@ -198,15 +198,18 @@ grep Host /home/docker/traefik/providers/*.yml >>$g_tmp/hosts cat $g_tmp/hosts | cut -d '`' -f2 | sort -u | while read host do - ssllabs-scan --quiet ${host} | jq '.[] | .endpoints | .[] | .grade' >${g_tmp}/ssllabs-scan-result + until ssllabs-scan --quiet ${host} | jq '.[] | .endpoints | .[] | .grade' >${g_tmp}/ssllabs-scan-result 2>&1 + do + sleep 60 + done if ! grep -q 'A+' ${g_tmp}/ssllabs-scan-result then - if ! grep -q T ${g_tmp}/ssllabs-scan-result - then + #if ! grep -q T ${g_tmp}/ssllabs-scan-result + #then g_echo_error "Qualys SSL Labs scan-result for ${host} not A+: $(cat ${g_tmp}/ssllabs-scan-result) https://www.ssllabs.com/ssltest/analyze.html?d=${host}&hideResults=on" - fi + #fi else g_echo_ok "Qualys SSL Labs scan-result for ${host}: $(cat ${g_tmp}/ssllabs-scan-result)" fi