added hook to run before cron command (fixes #371)

This commit is contained in:
Lukas Schauer
2017-07-10 21:36:10 +02:00
parent cbb661ca17
commit 60583d3ef9
2 changed files with 11 additions and 3 deletions

View File

@@ -889,6 +889,7 @@ command_account() {
# Description: Sign/renew non-existent/changed/expiring certificates.
command_sign_domains() {
init_system
[[ -n "${HOOK}" ]] && "${HOOK}" "startup_hook"
if [[ -n "${PARAM_DOMAIN:-}" ]]; then
DOMAINS_TXT="$(_mktemp)"