From: Lukas Schauer Date: Tue, 11 Jul 2017 08:06:42 +0000 (+0200) Subject: fixed exit_hook X-Git-Tag: v0.5.0~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f3bd3e9567e97e963cb80141c3ba9147605360c;p=thirdparty%2Fdehydrated.git fixed exit_hook --- diff --git a/dehydrated b/dehydrated index 5dfb4a9..785ea4c 100755 --- a/dehydrated +++ b/dehydrated @@ -1054,11 +1054,11 @@ command_sign_domains() { # remove temporary domains.txt file if used [[ -n "${PARAM_DOMAIN:-}" ]] && rm -f "${DOMAINS_TXT}" + [[ -n "${HOOK}" ]] && "${HOOK}" "exit_hook" if [[ "${AUTO_CLEANUP}" == "yes" ]]; then echo "+ Running automatic cleanup" command_cleanup noinit fi - [[ -n "${HOOK}" ]] && "${HOOK}" "exit_hook" exit 0 }