Browse Source

Update dns_fmdns.sh

pull/6173/head
Gianluca Giacometti 1 month ago
committed by GitHub
parent
commit
38aa8696e7
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      dnsapi/dns_fmdns.sh

4
dnsapi/dns_fmdns.sh

@ -95,7 +95,7 @@ _fmDnsApi_addRecord() {
_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\"}"
curResult="$(_post "${curData}" "${FMDNS_API_ENDPOINT}")"
_info "API result: "${curResult}""
_info "API result: '${curResult}'"
_debug "Calling facileManager API: '${curData}' '${FMDNS_API_ENDPOINT}'"
_debug "Result of zone add: '$curResult'"
if [ "${curResult}" != "Success" ]; then
@ -114,7 +114,7 @@ _fmDnsApi_removeRecord() {
_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\"}"
curResult="$(_post "${curData}" "${FMDNS_API_ENDPOINT}")"
_info "API result: "${curResult}""
_info "API result: '${curResult}'"
_debug "Calling facileManager API: '${curData}' '${FMDNS_API_ENDPOINT}'"
_debug "Result of zone delete: '$curResult'"
if [ "${curResult}" != "Success" ]; then

Loading…
Cancel
Save