]>
git.proxmox.com Git - mirror_acme.sh.git/blob - dnsapi/dns_myapi.sh
3 #Here is a sample custom api script.
4 #This file name is "dns_myapi.sh"
5 #So, here must be a method dns_myapi_add()
6 #Which will be called by acme.sh to add the txt record to your api system.
7 #returns 0 means success, otherwise error.
11 ######## Public functions #####################
13 #Usage: dns_myapi_add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
17 _err
"Not implemented!"
25 #################### Private functions bellow ##################################
30 echo "[$(date)] $1='$2'"
40 if [ -z "$DEBUG" ] ; then
48 if [ "$DEBUG" ] && [ "$DEBUG" -ge "2" ] ; then