]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
fixed exit_hook
authorLukas Schauer <lukas@schauer.so>
Tue, 11 Jul 2017 08:06:42 +0000 (10:06 +0200)
committerLukas Schauer <lukas@schauer.so>
Tue, 11 Jul 2017 08:06:42 +0000 (10:06 +0200)
dehydrated

index 5dfb4a9b0a8ad5e1bc45fb27fe462aa968057ba0..785ea4c3a25215c4755362cc4d50c320df6ba60e 100755 (executable)
@@ -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
 }