diff options
| author | George Giannou <giannoug@gmail.com> | 2021-11-28 21:10:19 +0200 |
|---|---|---|
| committer | George Giannou <giannoug@gmail.com> | 2021-11-29 13:00:36 +0200 |
| commit | 49defda70c5a9303f6e9f5f197893ceca6a69111 (patch) | |
| tree | 09adebda9b15cbdb9f127c75326afa5b3e01d28e /net/ddns-scripts | |
| parent | 06db04ba6375dd42f2858a96cb823ad5834c56bb (diff) | |
ddns-scripts: Fix DigitalOcean JSON payload
Signed-off-by: George Giannou <giannoug@gmail.com>
Diffstat (limited to 'net/ddns-scripts')
| -rw-r--r-- | net/ddns-scripts/Makefile | 2 | ||||
| -rw-r--r-- | net/ddns-scripts/files/usr/lib/ddns/update_digitalocean_com_v2.sh | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index 45faa42a9..3463666d9 100644 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -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 diff --git a/net/ddns-scripts/files/usr/lib/ddns/update_digitalocean_com_v2.sh b/net/ddns-scripts/files/usr/lib/ddns/update_digitalocean_com_v2.sh index 47fdd8902..5ee1b13fe 100644 --- a/net/ddns-scripts/files/usr/lib/ddns/update_digitalocean_com_v2.sh +++ b/net/ddns-scripts/files/usr/lib/ddns/update_digitalocean_com_v2.sh @@ -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}" \ |
