mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-07-08 05:55:18 +02: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.
|
# Description: Sign/renew non-existent/changed/expiring certificates.
|
||||||
command_sign_domains() {
|
command_sign_domains() {
|
||||||
init_system
|
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"
|
[[ -n "${HOOK}" ]] && "${HOOK}" "startup_hook"
|
||||||
|
|
||||||
if [ ! -d "${CHAINCACHE}" ]; then
|
if [ ! -d "${CHAINCACHE}" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user