fixed exit_hook

This commit is contained in:
Lukas Schauer
2017-07-11 10:06:42 +02:00
parent f86290ea52
commit 4f3bd3e956

View File

@@ -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
}