Browse Source
Merge pull request #6476 from TobiasGrave/fix_variomedia_api_2
Variomedia API: Fix DNS challenge TXT record deletion
pull/6236/merge
neil
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
dnsapi/dns_variomedia.sh
|
|
@ -74,7 +74,7 @@ dns_variomedia_rm() { |
|
|
|
return 1 |
|
|
|
fi |
|
|
|
|
|
|
|
_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 ' ')" |
|
|
|
_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 ' ')" |
|
|
|
_debug _record_id "$_record_id" |
|
|
|
if [ "$_record_id" ]; then |
|
|
|
_info "Successfully retrieved the record id for ACME challenge." |
|
|
|