mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 08:28:20 +04:00
ddns-scripts: Fix DigitalOcean JSON payload
Signed-off-by: George Giannou <giannoug@gmail.com>
This commit is contained in:
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=ddns-scripts
|
PKG_NAME:=ddns-scripts
|
||||||
PKG_VERSION:=2.8.2
|
PKG_VERSION:=2.8.2
|
||||||
PKG_RELEASE:=16
|
PKG_RELEASE:=17
|
||||||
|
|
||||||
PKG_LICENSE:=GPL-2.0
|
PKG_LICENSE:=GPL-2.0
|
||||||
|
|
||||||
|
|||||||
@@ -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 name "$username"
|
json_add_string data "$__IP"
|
||||||
json_add_string data "$__IP"
|
|
||||||
json_close_object
|
|
||||||
|
|
||||||
__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}" \
|
||||||
|
|||||||
Reference in New Issue
Block a user