mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-03-17 23:03:47 +01:00
added call to random hook to make it clear to hook authors that unknown hooks should just be ignored
This commit is contained in:
@@ -1090,6 +1090,12 @@ command_account() {
|
||||
# Description: Sign/renew non-existent/changed/expiring certificates.
|
||||
command_sign_domains() {
|
||||
init_system
|
||||
|
||||
# Hook scripts should ignore any hooks they don't know.
|
||||
# Calling a random hook to make this clear to the hook authors...
|
||||
[[ -n "${HOOK}" ]] && "${HOOK}" "$(openssl rand -base64 16)" "please ignore unknown hooks!!!"
|
||||
|
||||
# Call startup hook
|
||||
[[ -n "${HOOK}" ]] && "${HOOK}" "startup_hook"
|
||||
|
||||
if [ ! -d "${CHAINCACHE}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user