From: Lukas Schauer Date: Tue, 6 Feb 2018 22:16:28 +0000 (+0100) Subject: added call to random hook to make it clear to hook authors that unknown hooks should... X-Git-Tag: v0.6.0~14 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=9ebab3e026569e79971fd7be14c522b22025150d;p=thirdparty%2Fdehydrated.git added call to random hook to make it clear to hook authors that unknown hooks should just be ignored --- 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