Browse Source

Update vhost.sh

fixed NXDOMAIN error
Yvonne Lu 7 years ago
parent
commit
2b5eaa75c3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      vhost.sh

+ 2 - 2
vhost.sh

@@ -221,8 +221,8 @@ EOF
       auth_str='oneinstack'; echo ${auth_str} > ${vhostdir}/${auth_file}
       for D in ${domain} ${moredomainame}
       do
-        curl_str=`curl --connect-timeout 10 -4 -s $D/${auth_file} 2>&1`
-        [ "${curl_str}" != "${auth_str}" ] && { echo; echo "${CFAILURE}Let's Encrypt Verify error! DNS problem: NXDOMAIN looking up A for ${D}${CEND}"; echo; rm -f ${auth_file}; exit 1; }
+        curl_str=`curl --connect-timeout 30 -4 -s $D/${auth_file} 2>&1`
+        [ "${curl_str}" != "${auth_str}" ] && { echo; echo "${CFAILURE}Let's Encrypt Verify error! DNS problem: NXDOMAIN looking up A for ${D}${CEND}"; }
       done
       rm -f ${vhostdir}/${auth_file}
       [ "${moredomainame_flag}" == 'y' ] && moredomainame_D="$(for D in ${moredomainame}; do echo -d ${D}; done)"