From fc98c2f2a2bfe195fb99deb254385b06ee19d4df Mon Sep 17 00:00:00 2001 From: Gianluca Giacometti <52405+gianlucagiacometti@users.noreply.github.com> Date: Mon, 20 Jan 2025 10:59:51 +0100 Subject: [PATCH] Update parameter name changed in official release --- dnsapi/dns_fmdns.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnsapi/dns_fmdns.sh b/dnsapi/dns_fmdns.sh index 78a4db59..bcc2c3e8 100644 --- a/dnsapi/dns_fmdns.sh +++ b/dnsapi/dns_fmdns.sh @@ -92,7 +92,7 @@ dns_fmdns_rm() { _fmDnsApi_addRecord() { _info "Connecting to ${FMDNS_API_ENDPOINT}" _info "Adding record to zone" - curData="{\"fmAuthToken\":\"${FMDNS_API_TOKEN}\",\"id\":\"${FMDNS_API_DOMAIN_ID}\",\"action\":\"add\",\"name\":\"${fulldomain}\",\"value\":\"${txtvalue}\",\"type\":\"TXT\",\"ttl\":\"5\",\"autoupdate\":\"yes\"}" + curData="{\"fmAuthToken\":\"${FMDNS_API_TOKEN}\",\"id\":\"${FMDNS_API_DOMAIN_ID}\",\"action\":\"add\",\"name\":\"${fulldomain}\",\"value\":\"${txtvalue}\",\"type\":\"TXT\",\"ttl\":\"5\",\"reload\":\"yes\"}" curResult="$(_post "${curData}" "${FMDNS_API_ENDPOINT}")" _info "API result: '${curResult}'" _debug "Calling facileManager API: '${curData}' '${FMDNS_API_ENDPOINT}'" @@ -111,7 +111,7 @@ _fmDnsApi_addRecord() { _fmDnsApi_removeRecord() { _info "Connecting to ${FMDNS_API_ENDPOINT}" _info "Removing record from zone" - curData="{\"fmAuthToken\":\"${FMDNS_API_TOKEN}\",\"id\":\"${FMDNS_API_DOMAIN_ID}\",\"action\":\"delete\",\"name\":\"${fulldomain}\",\"type\":\"TXT\",\"ttl\":\"5\",\"autoupdate\":\"yes\"}" + curData="{\"fmAuthToken\":\"${FMDNS_API_TOKEN}\",\"id\":\"${FMDNS_API_DOMAIN_ID}\",\"action\":\"delete\",\"name\":\"${fulldomain}\",\"type\":\"TXT\",\"ttl\":\"5\",\"reload\":\"yes\"}" curResult="$(_post "${curData}" "${FMDNS_API_ENDPOINT}")" _info "API result: '${curResult}'" _debug "Calling facileManager API: '${curData}' '${FMDNS_API_ENDPOINT}'"