added exit_hook hook

This commit is contained in:
Lukas Schauer
2017-01-29 15:48:03 +01:00
parent 0f299623be
commit 298a7e9aaf
3 changed files with 11 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ invalid_challenge() {
}
request_failure() {
local STATUSCODE="${1}" REASON="${2}" REQTYPE=${3}
local STATUSCODE="${1}" REASON="${2}" REQTYPE="${3}"
# This hook is called when a HTTP request fails (e.g., when the ACME
# server is busy, returns an error, etc). It will be called upon any
@@ -105,5 +105,12 @@ request_failure() {
# The kind of request that was made (GET, POST...)
}
exit_hook() {
# This hook is called at the end of a dehydrated command and can be used
# to do some final (cleanup or other) tasks.
:
}
HANDLER="$1"; shift
"$HANDLER" "$@"