Skip to content

Commit 2bac2d3

Browse files
authored
Error detail fix for v-add-letsencrypt-domain
Fixes retrieving 'detail' value from LetsEncrypt answer when certificate request fails.
1 parent 3c64056 commit 2bac2d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-add-letsencrypt-domain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ for auth in $authz; do
299299
validation=$(echo "$answer"|grep -A1 $proto |tail -n1|cut -f4 -d \")
300300
nonce=$(echo "$answer" |grep -i nonce |cut -f2 -d \ |tr -d '\r\n')
301301
status=$(echo "$answer"|grep HTTP/ |tail -n1 |cut -f 2 -d ' ')
302-
details=$(echo "$answer"| grep detail | cut -f 2 -d ',' | cut -f 2-4 -d ':')
302+
details=$(echo "$answer"| grep detail | cut -f 1 -d ',' | cut -f 2-4 -d ':' | cut -f 2 -d '"')
303303
if [[ "$status" -ne 200 ]]; then
304304
# Delete DNS CAA record
305305
if [ ! -z "$DNS_SYSTEM" ]; then

0 commit comments

Comments
 (0)