added call to random hook to make it clear to hook authors that unknown hooks should just be ignored

This commit is contained in:
Lukas Schauer
2018-02-06 23:16:28 +01:00
parent ad291207d0
commit 9ebab3e026

View File

@@ -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