services: add more logging to updating_dns
This commit is contained in:
parent
9866cbb774
commit
e723719db5
@ -39,10 +39,11 @@ function check_new_ip() {
|
||||
|
||||
check_new_ip
|
||||
|
||||
curl --request PATCH \
|
||||
curl_answer="$(curl --request PATCH \
|
||||
--url "https://api.cloudflare.com/client/v4/zones/${ZONE_ID}/dns_records/${DNS_RECORD}" \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header 'X-Auth-Email: ' \
|
||||
--silent \
|
||||
--data '{
|
||||
"content": "'${CACHED_PUBLIC_IP}'",
|
||||
"name": "tylencloud.com",
|
||||
@ -51,4 +52,7 @@ curl --request PATCH \
|
||||
"comment": "Main Record",
|
||||
"ttl": 3600
|
||||
}' \
|
||||
-H "Authorization: Bearer ${AUTHORIZATION}";
|
||||
-H "Authorization: Bearer ${AUTHORIZATION}")"
|
||||
|
||||
info "${curl_answer}"
|
||||
"${SEND_TELEGRAM}" "$(echo ${curl_answer} | jq)"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user