mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-07-06 21:15:10 +02:00
check if hooks are chained before calling cleanup-hook on errors (fixes #126)
This commit is contained in:
+2
-1
@@ -229,6 +229,7 @@ _openssl() {
|
|||||||
echo >&2
|
echo >&2
|
||||||
echo "Details:" >&2
|
echo "Details:" >&2
|
||||||
echo "${out}" >&2
|
echo "${out}" >&2
|
||||||
|
echo >&2
|
||||||
exit ${res}
|
exit ${res}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -255,7 +256,7 @@ http_request() {
|
|||||||
rm -f "${tempcont}"
|
rm -f "${tempcont}"
|
||||||
|
|
||||||
# Wait for hook script to clean the challenge if used
|
# Wait for hook script to clean the challenge if used
|
||||||
if [[ -n "${HOOK}" ]] && [[ -n "${challenge_token:+set}" ]]; then
|
if [[ -n "${HOOK}" ]] && [[ "${HOOK_CHAIN}" != "yes" ]] && [[ -n "${challenge_token:+set}" ]]; then
|
||||||
${HOOK} "clean_challenge" '' "${challenge_token}" "${keyauth}" <&4 >&5 2>&6
|
${HOOK} "clean_challenge" '' "${challenge_token}" "${keyauth}" <&4 >&5 2>&6
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user