Created
November 24, 2017 17:32
-
-
Save towo/585dd3a41bea7ec6d8c29587d8551a86 to your computer and use it in GitHub Desktop.
Ghetto manual DNS hook for acmetool
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
EVENT_NAME="$1" | |
CH_HOSTNAME="$2" | |
CH_TARGET_FILENAME="$3" | |
CH_TXT_VALUE="$4" | |
case "${EVENT_NAME}" in | |
challenge-dns-start) | |
echo "Use the following TXT value: _acme-challenge.${CH_HOSTNAME} TXT ${CH_TXT_VALUE}" | |
echo 'Waiting for 300 seconds' | |
sleep 300 | |
;; | |
challenge-dns-stop) | |
;; | |
*) | |
exit 42 | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment