mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-16 08:26:48 +01:00
Retain full result when submitting challenge. Fixes #102
This commit is contained in:
@@ -342,7 +342,8 @@ sign_domain() {
|
||||
|
||||
while [[ "${status}" = "pending" ]]; do
|
||||
sleep 1
|
||||
status="$(http_request get "${challenge_uri}" | get_json_string_value status)"
|
||||
result="$(http_request get "${challenge_uri}")"
|
||||
status="$(printf '%s\n' "${result}" | get_json_string_value status)"
|
||||
done
|
||||
|
||||
[[ "${CHALLENGETYPE}" = "http-01" ]] && rm -f "${WELLKNOWN}/${challenge_token}"
|
||||
@@ -355,7 +356,7 @@ sign_domain() {
|
||||
if [[ "${status}" = "valid" ]]; then
|
||||
echo " + Challenge is valid!"
|
||||
else
|
||||
_exiterr "Challenge is invalid! (returned: ${status})"
|
||||
_exiterr "Challenge is invalid! (returned: ${status}) (result: ${result})"
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user