mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-03-25 02:21:02 +01:00
added exit_hook hook
This commit is contained in:
@@ -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" "$@"
|
||||
|
||||
Reference in New Issue
Block a user