traefik.yml aktualisiert

This commit is contained in:
olli 2024-01-29 16:13:32 +01:00
parent f52ba6efbf
commit c5a78ab5c6

View File

@ -260,6 +260,18 @@
g_echo_error "Error while connecting ${host} with wget: g_echo_error "Error while connecting ${host} with wget:
$(cat ${g_tmp}/traefik-wget-check)" $(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
fi fi
done done