Compare commits

..

2 Commits

View File

@ -44,9 +44,9 @@ if [ "$old" = "$current" ]; then
fi
# send addresses to dynv6
curl --silent -H "Authorization: Bearer $token" -H "Accept: application/json" -H "Content-Type: application/json" -X PATCH \
curl -i --silent -H "Authorization: Bearer $token" -H "Accept: application/json" -H "Content-Type: application/json" -X PATCH \
-d '{"name":"'$hostname'","data":"'$address'","type":"AAAA"}' \
$api_url | jq
$api_url | grep HTTP | grep -v 200
# save current address
echo $current > $file