Skip to content

Commit 1b89e7c

Browse files
authored
Merge pull request #6476 from TobiasGrave/fix_variomedia_api_2
Variomedia API: Fix DNS challenge TXT record deletion
2 parents 49513cb + bcf0afb commit 1b89e7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dnsapi/dns_variomedia.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ dns_variomedia_rm() {
7474
return 1
7575
fi
7676

77-
_record_id="$(echo "$response" | sed -E 's/,"tags":\[[^]]*\]//g' | cut -d '[' -f2 | cut -d']' -f1 | sed 's/},[ \t]*{/\},§\{/g' | tr § '\n' | grep "$_sub_domain" | grep -- "$txtvalue" | sed 's/^{//;s/}[,]?$//' | tr , '\n' | tr -d '\"' | grep ^id | cut -d : -f2 | tr -d ' ')"
77+
_record_id="$(echo "$response" | sed -E 's/,"tags":\[[^]]*\]//g' | cut -d '[' -f3 | cut -d']' -f1 | sed 's/},[ \t]*{/\},§\{/g' | tr § '\n' | grep -i "$_sub_domain" | grep -- "$txtvalue" | sed 's/^{//;s/}[,]?$//' | tr , '\n' | tr -d '\"' | grep ^id | cut -d : -f2 | tr -d ' ')"
7878
_debug _record_id "$_record_id"
7979
if [ "$_record_id" ]; then
8080
_info "Successfully retrieved the record id for ACME challenge."

0 commit comments

Comments
 (0)