]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
added call to random hook to make it clear to hook authors that unknown hooks should...
authorLukas Schauer <lukas@schauer.so>
Tue, 6 Feb 2018 22:16:28 +0000 (23:16 +0100)
committerLukas Schauer <lukas@schauer.so>
Tue, 6 Feb 2018 22:16:28 +0000 (23:16 +0100)
dehydrated

index 747dd6fba181a2523165a8826f900bbba9c84071..bb2f9e579c17b15beb7022de8a5c9cef370715d1 100755 (executable)
@@ -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