Update hooks, add dehydrated hook
This commit is contained in:
parent
af0c7e26fa
commit
bd6a2d0228
3 changed files with 13 additions and 2 deletions
|
@ -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
11
client/dehydrated-hook.sh
Executable 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
|
|
@ -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\""
|
||||
|
|
Loading…
Reference in a new issue