Update hooks, add dehydrated hook

This commit is contained in:
informatic 2017-04-07 15:13:57 +02:00
parent af0c7e26fa
commit bd6a2d0228
3 changed files with 13 additions and 2 deletions

View file

@ -2,4 +2,4 @@
. $(dirname $(realpath $0))/hook-config
curl "$API_URL/api/1/delete?token=$API_TOKEN&record=_acme-challenge.$CERTBOT_DOMAIN&type=TXT"
curl "$API_URL/api/1/delete?token=$API_TOKEN&record=_acme-challenge.$CERTBOT_DOMAIN:TXT"

11
client/dehydrated-hook.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
CERTBOT_DOMAIN="$2"
CERTBOT_VALIDATION="$4"
case $1 in
deploy_challenge)
. $(dirname $(realpath $0))/install-hook.sh ;;
cleanup_challenge)
. $(dirname $(realpath $0))/cleanup-hook.sh ;;
esac

View file

@ -2,4 +2,4 @@
. $(dirname $(realpath $0))/hook-config
curl "$API_URL/api/1/add?token=$API_TOKEN&record=_acme-challenge.$CERTBOT_DOMAIN&value=$CERTBOT_VALIDATION&type=TXT"
curl "$API_URL/api/1/add?token=$API_TOKEN&record=_acme-challenge.$CERTBOT_DOMAIN:TXT&value=\"$CERTBOT_VALIDATION\""