]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
make sure _url gets set where it is needed
authorChristophe B Billheimer <cbillhei@gmu.edu>
Sun, 12 Sep 2021 17:00:03 +0000 (13:00 -0400)
committerChristophe B Billheimer <cbillhei@gmu.edu>
Sun, 12 Sep 2021 17:00:03 +0000 (13:00 -0400)
dnsapi/dns_1984hosting.sh

index fafd9e8dea42e5b322707d45fa987dddd329fbab..d011f334ba46380083d7d42833375db556998acd 100755 (executable)
@@ -96,9 +96,10 @@ dns_1984hosting_rm() {
 
   _debug "Delete $fulldomain TXT record"
   
+  _url="https://management.1984hosting.com/domains" 
   _get_zone_id "$@"
 
-  _htmlget "$url/$_zone_id" "$_sub_domain"
+  _htmlget "$_url/$_zone_id" "$_sub_domain"
   _debug2 _response "$_response"
   entry_id="$(echo "$_response" | _egrep_o 'entry_[0-9]+' | sed 's/entry_//')"
   _debug2 entry_id "$entry_id"
@@ -216,9 +217,7 @@ _get_root() {
 #domain.com
 #returns zone id for domain.com
 _get_zone_id() {
-  url="https://management.1984hosting.com/domains"
-
-  _htmlget "$url" "$_domain"
+  _htmlget "$_url" "$_domain"
   _debug2 _response "$_response"
   _zone_id="$(echo "$_response" | _egrep_o 'zone\/[0-9]+')"
   _debug2 _zone_id "$_zone_id"