Browse Source
Update dns_variomedia.sh
This update causes the variomedia dns script to work again.
pull/4815/head
djalexz
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
dnsapi/dns_variomedia.sh
|
@ -69,7 +69,7 @@ dns_variomedia_rm() { |
|
|
return 1 |
|
|
return 1 |
|
|
fi |
|
|
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" | 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 ' ')" |
|
|
_debug _record_id "$_record_id" |
|
|
_debug _record_id "$_record_id" |
|
|
if [ "$_record_id" ]; then |
|
|
if [ "$_record_id" ]; then |
|
|
_info "Successfully retrieved the record id for ACME challenge." |
|
|
_info "Successfully retrieved the record id for ACME challenge." |
|
@ -94,7 +94,7 @@ dns_variomedia_rm() { |
|
|
# _domain=domain.com |
|
|
# _domain=domain.com |
|
|
_get_root() { |
|
|
_get_root() { |
|
|
domain=$1 |
|
|
domain=$1 |
|
|
i=1 |
|
|
|
|
|
|
|
|
i=2 |
|
|
p=1 |
|
|
p=1 |
|
|
while true; do |
|
|
while true; do |
|
|
h=$(printf "%s" "$domain" | cut -d . -f $i-100) |
|
|
h=$(printf "%s" "$domain" | cut -d . -f $i-100) |
|
|