mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-05-17 12:26:55 +02:00
fixed exit_hook
This commit is contained in:
+1
-1
@@ -1054,11 +1054,11 @@ command_sign_domains() {
|
|||||||
# remove temporary domains.txt file if used
|
# remove temporary domains.txt file if used
|
||||||
[[ -n "${PARAM_DOMAIN:-}" ]] && rm -f "${DOMAINS_TXT}"
|
[[ -n "${PARAM_DOMAIN:-}" ]] && rm -f "${DOMAINS_TXT}"
|
||||||
|
|
||||||
|
[[ -n "${HOOK}" ]] && "${HOOK}" "exit_hook"
|
||||||
if [[ "${AUTO_CLEANUP}" == "yes" ]]; then
|
if [[ "${AUTO_CLEANUP}" == "yes" ]]; then
|
||||||
echo "+ Running automatic cleanup"
|
echo "+ Running automatic cleanup"
|
||||||
command_cleanup noinit
|
command_cleanup noinit
|
||||||
fi
|
fi
|
||||||
[[ -n "${HOOK}" ]] && "${HOOK}" "exit_hook"
|
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user