services: add more logging to updating_dns

This commit is contained in:
Vasily Davydov 2024-06-04 14:43:27 +03:00
parent 9866cbb774
commit e723719db5

View File

@ -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)"