nur Ausgabe, wenn nicht http 200 zurückgegeben wird

This commit is contained in:
Alexander Gabriel 2026-03-28 14:33:30 +01:00
parent fa499d0675
commit 1e243a144e

View File

@ -44,9 +44,9 @@ if [ "$old" = "$current" ]; then
fi fi
# send addresses to dynv6 # 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"}' \ -d '{"name":"'$hostname'","data":"'$address'","type":"AAAA"}' \
$api_url | jq $api_url | grep HTTP | grep -v 200
# save current address # save current address
echo $current > $file echo $current > $file