From 9ebab3e026569e79971fd7be14c522b22025150d Mon Sep 17 00:00:00 2001 From: Lukas Schauer Date: Tue, 6 Feb 2018 23:16:28 +0100 Subject: [PATCH] added call to random hook to make it clear to hook authors that unknown hooks should just be ignored --- dehydrated | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dehydrated b/dehydrated index 747dd6f..bb2f9e5 100755 --- a/dehydrated +++ b/dehydrated @@ -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 -- 2.47.2