Explorar o código

Merge pull request #847 from drsdre/letsencrypt-detail-response-fix

Error detail fix for v-add-letsencrypt-domain
Raphael Schneeberger %!s(int64=5) %!d(string=hai) anos
pai
achega
d2c6b2e50b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bin/v-add-letsencrypt-domain

+ 1 - 1
bin/v-add-letsencrypt-domain

@@ -299,7 +299,7 @@ for auth in $authz; do
         validation=$(echo "$answer"|grep -A1 $proto |tail -n1|cut -f4 -d \")
         nonce=$(echo "$answer" |grep -i nonce |cut -f2 -d \ |tr -d '\r\n')
         status=$(echo "$answer"|grep HTTP/ |tail -n1 |cut -f 2 -d ' ')
-        details=$(echo "$answer"| grep detail | cut -f 2 -d ',' | cut -f 2-4 -d ':')
+        details=$(echo "$answer"| grep detail | cut -f 1 -d ',' | cut -f 2-4 -d ':' | cut -f 2 -d '"')
         if [[ "$status" -ne 200 ]]; then
             # Delete DNS CAA record
             if [ ! -z "$DNS_SYSTEM" ]; then