|
@ -22,10 +22,8 @@ |
|
|
|
|
|
|
|
|
# Construct JSON payload |
|
|
# Construct JSON payload |
|
|
json_init |
|
|
json_init |
|
|
json_add_object |
|
|
|
|
|
json_add_string name "$username" |
|
|
|
|
|
json_add_string data "$__IP" |
|
|
|
|
|
json_close_object |
|
|
|
|
|
|
|
|
json_add_string name "$username" |
|
|
|
|
|
json_add_string data "$__IP" |
|
|
|
|
|
|
|
|
__STATUS=$(curl -Ss -X PUT "https://api.digitalocean.com/v2/domains/${domain}/records/${param_opt}" \ |
|
|
__STATUS=$(curl -Ss -X PUT "https://api.digitalocean.com/v2/domains/${domain}/records/${param_opt}" \ |
|
|
-H "Authorization: Bearer ${password}" \ |
|
|
-H "Authorization: Bearer ${password}" \ |
|
|