|
|
@ -115,8 +115,8 @@ _check_and_save() { |
|
|
|
|
|
|
|
# Gets back the base domain/zone and record name. |
|
|
|
# See: https://github.com/Neilpang/acme.sh/wiki/DNS-API-Dev-Guide |
|
|
|
_get_zone_and_record_name()() { |
|
|
|
_zonen="$( cat testfile.txt | tr -d "\n\r" | tr -d " " | tr '[]' '<>' | sed "s/=>Array/\n=> Array/g" | tr ' ' '\n' | grep "domain_name" | tr '<' '\n' | grep "domain_name" | cut -d '>' -f 3)" |
|
|
|
_get_zone_and_record_name() { |
|
|
|
_zonen="$( echo "$response" | tr -d "\n\r" | tr -d " " | tr '[]' '<>' | sed "s/=>Array/\n=> Array/g" | tr ' ' '\n' | grep "domain_name" | tr '<' '\n' | grep "domain_name" | cut -d '>' -f 3)" |
|
|
|
_domain="$1" |
|
|
|
if _endswith "$_domain" "."; then |
|
|
|
_domain="$(echo "$_domain" | sed 's/.$//')" |
|
|
|