update and cleanup

This commit is contained in:
2024-02-09 22:15:49 +01:00
parent a85701eee2
commit a315989db1
5 changed files with 26 additions and 101 deletions

View File

@ -20,8 +20,6 @@ if host $dnsrecord 1.1.1.1 | grep "has address" | grep "$ip"; then
exit
fi
# if here, the dns record needs updating
# get the zone id for the requested zone
zoneid=$(curl -s -X GET "https://api.cloudflare.com/client/v4/zones?name=$zone&status=active" \
-H "X-Auth-Email: $cloudflare_auth_email" \