fix for the new let's encrypt format

This commit is contained in:
neil 2016-05-21 14:33:40 +08:00
parent 6cd3a8a549
commit 2ee5d873db

View File

@ -1,6 +1,6 @@
#!/usr/bin/env sh #!/usr/bin/env sh
VER=2.2.4 VER=2.2.5
PROJECT_NAME="acme.sh" PROJECT_NAME="acme.sh"
@ -667,7 +667,7 @@ _send_signed_request() {
_debug2 body "$body" _debug2 body "$body"
response="$(_post "$body" $url "$needbase64" )" response="$(_post "$body" $url "$needbase64" | tr -d "\r\n ")"
responseHeaders="$(cat $HTTP_HEADER)" responseHeaders="$(cat $HTTP_HEADER)"
@ -1401,7 +1401,7 @@ issue() {
MAX_RETRY_TIMES=30 MAX_RETRY_TIMES=30
fi fi
while [ "1" ] ; do while true ; do
waittimes=$(_math $waittimes + 1) waittimes=$(_math $waittimes + 1)
if [ "$waittimes" -ge "$MAX_RETRY_TIMES" ] ; then if [ "$waittimes" -ge "$MAX_RETRY_TIMES" ] ; then
_err "$d:Timeout" _err "$d:Timeout"
@ -1413,7 +1413,7 @@ issue() {
_debug "sleep 5 secs to verify" _debug "sleep 5 secs to verify"
sleep 5 sleep 5
_debug "checking" _debug "checking"
response="$(_get $uri)" response="$(_get $uri | tr -d "\r\n ")"
if [ "$?" != "0" ] ; then if [ "$?" != "0" ] ; then
_err "$d:Verify error:$response" _err "$d:Verify error:$response"
_clearupwebbroot "$_currentRoot" "$removelevel" "$token" _clearupwebbroot "$_currentRoot" "$removelevel" "$token"