mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-06-15 20:32:44 +00:00
Update dns_pmiab.sh
Correct comments
This commit is contained in:
parent
244b3f80e6
commit
a3ed20f1b4
@ -8,7 +8,7 @@ Options:
|
|||||||
PMIAB_Password Admin password
|
PMIAB_Password Admin password
|
||||||
PMIAB_Server Server hostname. FQDN of your_PMIAB Server
|
PMIAB_Server Server hostname. FQDN of your_PMIAB Server
|
||||||
Issues: github.com/acmesh-official/acme.sh/issues/2550
|
Issues: github.com/acmesh-official/acme.sh/issues/2550
|
||||||
Author: Roland Giesler
|
Author: Roland Giesler (lifeboy)
|
||||||
Cloned from dns_miab by Darven Dissek, William Gertz
|
Cloned from dns_miab by Darven Dissek, William Gertz
|
||||||
'
|
'
|
||||||
|
|
||||||
@ -17,8 +17,7 @@ Cloned from dns_miab by Darven Dissek, William Gertz
|
|||||||
#Usage: dns_pmiab_add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
|
#Usage: dns_pmiab_add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
|
||||||
dns_pmiab_add() {
|
dns_pmiab_add() {
|
||||||
fulldomain=$1
|
fulldomain=$1
|
||||||
# Added "value=" and "&ttl=300" to accomodate the new TXT record format used by the PMIAB API
|
txtvalue="$2"
|
||||||
txtvalue="value=$2&ttl=300"
|
|
||||||
_info "Using pmiab challenge add"
|
_info "Using pmiab challenge add"
|
||||||
_debug fulldomain "$fulldomain"
|
_debug fulldomain "$fulldomain"
|
||||||
_debug txtvalue "$txtvalue"
|
_debug txtvalue "$txtvalue"
|
||||||
@ -39,6 +38,7 @@ dns_pmiab_add() {
|
|||||||
|
|
||||||
#add the challenge record
|
#add the challenge record
|
||||||
_api_path="custom/${fulldomain}/txt"
|
_api_path="custom/${fulldomain}/txt"
|
||||||
|
# Added "value=" and "&ttl=300" to accomodate the new TXT record format used by the PMIAB API
|
||||||
_pmiab_rest "value=$txtvalue&ttl=300" "$_api_path" "POST"
|
_pmiab_rest "value=$txtvalue&ttl=300" "$_api_path" "POST"
|
||||||
|
|
||||||
#check if result was good
|
#check if result was good
|
||||||
|
Loading…
x
Reference in New Issue
Block a user