call exit_hook with error message (fixes #630)

This commit is contained in:
Lukas Schauer
2019-03-03 20:08:18 +01:00
parent e623fcc024
commit 1c77730373
3 changed files with 8 additions and 2 deletions

View File

@@ -178,10 +178,14 @@ startup_hook() {
}
exit_hook() {
local ERROR="${1:-}"
# This hook is called at the end of the cron command and can be used to
# do some final (cleanup or other) tasks.
:
#
# Parameters:
# - ERROR
# Contains error message if dehydrated exits with error
}
HANDLER="$1"; shift