ignore 403 Forbidden too

This commit is contained in:
olli 2022-12-23 13:33:14 +01:00
parent 7f228ab2a5
commit 96c29a1d56

View File

@ -246,7 +246,7 @@
do
if ! wget --dns-timeout=120 -t5 --waitretry=120 --connect-timeout=300 --read-timeout=15 http://${host} >${g_tmp}/traefik-wget-check -O /dev/null 2>&1
then
if ! grep -q "401 Unauthorized" ${g_tmp}/traefik-wget-check
if ! egrep -q "401 Unauthorized|403 Forbidden" ${g_tmp}/traefik-wget-check
then
g_echo_error "Error while connecting ${host} with wget: