dedyn.yml aktualisiert

This commit is contained in:
olli 2023-08-23 12:52:55 +02:00
parent 91c6dcf872
commit f5263f8681

View File

@ -73,6 +73,15 @@
if curl -i "https://${updatesrv}/?hostname=${dynaddr}&${updatestring}" --header "Authorization: Token ${dedynpw}"
then
g_echo_ok "DynDNS IP ${ip} for ${dynaddr} renewed"
# restart traefik on Problems with ACME/letsencrypt
if [ -f /home/docker/traefik/docker-compose.yml ]
then
if docker compose -f /home/docker/traefik/docker-compose.yml logs | egrep -q "error.+acme-challenge"
then
docker compose -f /home/docker/traefik/docker-compose.yml down
docker compose -f /home/docker/traefik/docker-compose.yml up -d
fi
fi
else
g_echo_error "DynDNS IP ${ip} for ${dynaddr}"
fi