nur Ausgabe, wenn nicht http 200 zurückgegeben wird
This commit is contained in:
parent
fa499d0675
commit
1e243a144e
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user