From c5a78ab5c6fbe8c2f017be56aeda92efd3c6b56e Mon Sep 17 00:00:00 2001 From: olli Date: Mon, 29 Jan 2024 16:13:32 +0100 Subject: [PATCH] traefik.yml aktualisiert --- traefik.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/traefik.yml b/traefik.yml index f57e000..7e9bb1e 100644 --- a/traefik.yml +++ b/traefik.yml @@ -260,6 +260,18 @@ g_echo_error "Error while connecting ${host} with wget: $(cat ${g_tmp}/traefik-wget-check)" + else + [ -f "${g_tmp}/$host-502" ] && rm "${g_tmp}/$host-502" + fi + if egrep -q "502 Bad Gateway" ${g_tmp}/traefik-wget-check + then + if [ -s "${g_tmp}/$host-502" ] && find "${g_tmp}/$host-502" | grep "$host-502" -mmin +15 + then + g_echo_error "Error while connecting ${host} with wget: + $(cat ${g_tmp}/traefik-wget-check)" + else + date >"${g_tmp}/$host-502" + fi fi fi done