dedyn.yml aktualisiert
This commit is contained in:
parent
91c6dcf872
commit
f5263f8681
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user