Browse Source

modifying debugs

pull/452/head
srvrco 8 years ago
committed by Damir Mitrovic
parent
commit
034ce54850
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      getssl

+ 1
- 3
getssl View File

@ -1873,7 +1873,6 @@ if [[ -e "$DOMAIN_DIR/FORCE_RENEWAL" ]]; then
info "${DOMAIN}: forcing renewal (due to FORCE_RENEWAL file)"
fi
echo "testing with API1"
# Obtain CA resource locations
if [[ $API -eq 1 ]]; then
ca_all_loc=$(curl "${CA}/directory" 2>/dev/null)
@ -1886,7 +1885,6 @@ if [[ $API -eq 1 ]]; then
debug "API=1 failed, setting API=2"
fi
fi
echo "testing with api2"
if [[ $API -eq 2 ]]; then
ca_all_loc=$(curl "${CA}/dir" 2>/dev/null)
debug "ca_all_loc from ${CA}/dir gives $ca_all_loc"
@ -1894,7 +1892,7 @@ if [[ $API -eq 2 ]]; then
URL_newNonce=$(echo "$ca_all_loc" | grep "newNonce" | awk -F'"' '{print $4}')
URL_newOrder=$(echo "$ca_all_loc" | grep "newOrder" | awk -F'"' '{print $4}')
if [[ -z "$ca_all_loc" ]]; then
debug "unknown API type $API"
debug "unknown API type"
graceful_exit
fi
fi


Loading…
Cancel
Save