Compare commits
No commits in common. "a11635731500df34faf54ac9c37b3fe702114c5b" and "d6beefba85c92400288e4a1717c69b9f0e86a3c3" have entirely different histories.
a116357315
...
d6beefba85
@ -44,9 +44,9 @@ if [ "$old" = "$current" ]; then
|
||||
fi
|
||||
|
||||
# send addresses to dynv6
|
||||
curl -i --silent -H "Authorization: Bearer $token" -H "Accept: application/json" -H "Content-Type: application/json" -X PATCH \
|
||||
curl --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 | grep HTTP | grep -v 200
|
||||
$api_url | jq
|
||||
|
||||
# save current address
|
||||
echo $current > $file
|
||||
|
||||
Loading…
Reference in New Issue
Block a user