Browse Source
Merge pull request #17228 from giannoug/fix-do
ddns-scripts: Fix DigitalOcean JSON payload
lilik-openwrt-22.03
Florian Eckert
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
5 deletions
-
net/ddns-scripts/Makefile
-
net/ddns-scripts/files/usr/lib/ddns/update_digitalocean_com_v2.sh
|
|
@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk |
|
|
|
|
|
|
|
PKG_NAME:=ddns-scripts |
|
|
|
PKG_VERSION:=2.8.2 |
|
|
|
PKG_RELEASE:=16 |
|
|
|
PKG_RELEASE:=17 |
|
|
|
|
|
|
|
PKG_LICENSE:=GPL-2.0 |
|
|
|
|
|
|
|
|
|
@ -22,10 +22,8 @@ |
|
|
|
|
|
|
|
# Construct JSON payload |
|
|
|
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}" \ |
|
|
|
-H "Authorization: Bearer ${password}" \ |
|
|
|