update and cleanup
This commit is contained in:
@ -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" \
|
||||
|
Reference in New Issue
Block a user