mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-09 16:01:46 +00:00
use _lower_case function
This commit is contained in:
parent
553d861b8a
commit
7dd12044de
@ -37,8 +37,8 @@ dns_ipv64_add() {
|
|||||||
_debug _domain "$_domain"
|
_debug _domain "$_domain"
|
||||||
|
|
||||||
# convert to lower case
|
# convert to lower case
|
||||||
_domain="$(echo "$_domain" | tr '[:upper:]' '[:lower:]')"
|
_domain="$(echo "$_domain" | _lower_case')"
|
||||||
_sub_domain="$(echo "$_sub_domain" | tr '[:upper:]' '[:lower:]')"
|
_sub_domain="$(echo "$_sub_domain" | _lower_case)"
|
||||||
# Now add the TXT record
|
# Now add the TXT record
|
||||||
_info "Trying to add TXT record"
|
_info "Trying to add TXT record"
|
||||||
if _ipv64_rest "POST" "add_record=$_domain&praefix=$_sub_domain&type=TXT&content=$txtvalue"; then
|
if _ipv64_rest "POST" "add_record=$_domain&praefix=$_sub_domain&type=TXT&content=$txtvalue"; then
|
||||||
@ -74,8 +74,8 @@ dns_ipv64_rm() {
|
|||||||
_debug _domain "$_domain"
|
_debug _domain "$_domain"
|
||||||
|
|
||||||
# convert to lower case
|
# convert to lower case
|
||||||
_domain="$(echo "$_domain" | tr '[:upper:]' '[:lower:]')"
|
_domain="$(echo "$_domain" | _lower_case)"
|
||||||
_sub_domain="$(echo "$_sub_domain" | tr '[:upper:]' '[:lower:]')"
|
_sub_domain="$(echo "$_sub_domain" | _lower_case)"
|
||||||
# Now delete the TXT record
|
# Now delete the TXT record
|
||||||
_info "Trying to delete TXT record"
|
_info "Trying to delete TXT record"
|
||||||
if _ipv64_rest "DELETE" "del_record=$_domain&praefix=$_sub_domain&type=TXT&content=$txtvalue"; then
|
if _ipv64_rest "DELETE" "del_record=$_domain&praefix=$_sub_domain&type=TXT&content=$txtvalue"; then
|
||||||
|
Loading…
Reference in New Issue
Block a user