You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
943 B

9 years ago
9 years ago
9 years ago
  1. #!/usr/bin/env sh
  2. #Here is a sample custom api script.
  3. #This file name is "dns_myapi.sh"
  4. #So, here must be a method dns_myapi_add()
  5. #Which will be called by acme.sh to add the txt record to your api system.
  6. #returns 0 means success, otherwise error.
  7. #
  8. #Author: Neilpang
  9. #Report Bugs here: https://github.com/Neilpang/acme.sh
  10. #
  11. ######## Public functions #####################
  12. #Usage: dns_myapi_add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
  13. dns_myapi_add() {
  14. fulldomain=$1
  15. txtvalue=$2
  16. _info "Using myapi"
  17. _debug fulldomain "$fulldomain"
  18. _debug txtvalue "$txtvalue"
  19. _err "Not implemented!"
  20. return 1
  21. }
  22. #Usage: fulldomain txtvalue
  23. #Remove the txt record afer validation.
  24. dns_myapi_rm() {
  25. fulldomain=$1
  26. txtvalue=$2
  27. _info "Using myapi"
  28. _debug fulldomain "$fulldomain"
  29. _debug txtvalue "$txtvalue"
  30. }
  31. #################### Private functions bellow ##################################