This commit is contained in:
LLeny 2018-09-07 20:52:49 +08:00
parent dc0dd6588c
commit 8868783476
1 changed files with 5 additions and 1 deletions

View File

@ -7,7 +7,11 @@
#
######## Public functions #####################
NAMECHEAP_API="https://api.sandbox.namecheap.com/xml.response"
if [ "$STAGE" -eq 1 ]; then
NAMECHEAP_API="https://api.sandbox.namecheap.com/xml.response"
else
NAMECHEAP_API="https://api.namecheap.com/xml.response"
fi
#Usage: dns_namecheap_add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
dns_namecheap_add() {