mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-07 04:14:13 +00:00
Update dns_jamotech.sh
This commit is contained in:
parent
9e788f8407
commit
b190e45b01
@ -49,7 +49,6 @@ dns_jamotech_add() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#Usage: fulldomain txtvalue
|
#Usage: fulldomain txtvalue
|
||||||
#Remove the txt record after validation.
|
#Remove the txt record after validation.
|
||||||
dns_jamotech_rm() {
|
dns_jamotech_rm() {
|
||||||
@ -73,7 +72,6 @@ dns_jamotech_rm() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
_info "Using jamotech-clean to remove the TXT record"
|
_info "Using jamotech-clean to remove the TXT record"
|
||||||
_get_root
|
_get_root
|
||||||
_remove_record
|
_remove_record
|
||||||
@ -82,7 +80,6 @@ dns_jamotech_rm() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#################### Private functions below ##################################
|
#################### Private functions below ##################################
|
||||||
# _acme-challenge.www.domain.com
|
# _acme-challenge.www.domain.com
|
||||||
# returns
|
# returns
|
||||||
@ -90,7 +87,6 @@ dns_jamotech_rm() {
|
|||||||
# _txtdomain=_acme-challenge.www
|
# _txtdomain=_acme-challenge.www
|
||||||
# _adomain=www
|
# _adomain=www
|
||||||
|
|
||||||
|
|
||||||
_get_root() {
|
_get_root() {
|
||||||
domain=$fulldomain
|
domain=$fulldomain
|
||||||
txtdomain=${domain%.jamo.tech}
|
txtdomain=${domain%.jamo.tech}
|
||||||
@ -108,7 +104,6 @@ _get_root() {
|
|||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
_check_record() {
|
_check_record() {
|
||||||
server_record="https://api.corp-jamo.tech/dns/v1/records/exists.php?access=$JTECH_KEY&hostname=$_subhost&target=$JTECH_ENDIP&type=A"
|
server_record="https://api.corp-jamo.tech/dns/v1/records/exists.php?access=$JTECH_KEY&hostname=$_subhost&target=$JTECH_ENDIP&type=A"
|
||||||
txt_record="https://api.corp-jamo.tech/dns/v1/records/exists.php?access=$JTECH_KEY&hostname=$_txthost&target=$txtvalue&type=TXT"
|
txt_record="https://api.corp-jamo.tech/dns/v1/records/exists.php?access=$JTECH_KEY&hostname=$_txthost&target=$txtvalue&type=TXT"
|
||||||
@ -137,7 +132,6 @@ _check_record() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
_create_record() {
|
_create_record() {
|
||||||
_check_record
|
_check_record
|
||||||
server_record="https://api.corp-jamo.tech/dns/v1/records/add.php?access=$JTECH_KEY&hostname=$_subhost&target=$JTECH_ENDIP&type=A"
|
server_record="https://api.corp-jamo.tech/dns/v1/records/add.php?access=$JTECH_KEY&hostname=$_subhost&target=$JTECH_ENDIP&type=A"
|
||||||
@ -159,8 +153,6 @@ _create_record() {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_remove_record() {
|
_remove_record() {
|
||||||
server_record="https://api.corp-jamo.tech/dns/v1/records/remove.php?access=$JTECH_KEY&hostname=$_subhost&target=$JTECH_ENDIP&type=A"
|
server_record="https://api.corp-jamo.tech/dns/v1/records/remove.php?access=$JTECH_KEY&hostname=$_subhost&target=$JTECH_ENDIP&type=A"
|
||||||
txt_record="https://api.corp-jamo.tech/dns/v1/records/remove.php?access=$JTECH_KEY&hostname=$_txthost&target=$txtvalue&type=TXT"
|
txt_record="https://api.corp-jamo.tech/dns/v1/records/remove.php?access=$JTECH_KEY&hostname=$_txthost&target=$txtvalue&type=TXT"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user