Compare commits
2 Commits
d6beefba85
...
a116357315
| Author | SHA1 | Date | |
|---|---|---|---|
| a116357315 | |||
| 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