ddns-scripts: Fix DigitalOcean JSON payload 17228/head
authorGeorge Giannou <giannoug@gmail.com>
Sun, 28 Nov 2021 19:10:19 +0000 (21:10 +0200)
committerGeorge Giannou <giannoug@gmail.com>
Mon, 29 Nov 2021 11:00:36 +0000 (13:00 +0200)
Signed-off-by: George Giannou <giannoug@gmail.com>
net/ddns-scripts/Makefile
net/ddns-scripts/files/usr/lib/ddns/update_digitalocean_com_v2.sh

index 45faa42a983dc1af5432201f841c860990bb96f3..3463666d99ced8e15327bbc36e8d75b9c3d12ad4 100644 (file)
@@ -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
 
index 47fdd8902e5ca7c543230c47ea3d0ef4b2e315e6..5ee1b13fe7899e29ee75a26b154a6db75dd51b3a 100644 (file)
 
 # 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}" \