From: neil Date: Sat, 30 Jan 2016 14:47:22 +0000 (+0800) Subject: sleep to wait dns record to take effect. X-Git-Tag: 2.8.6~787^2~1 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=0ed4c9391e2956769bdb1be64c8a05df1e312293;p=mirror_acme.sh.git sleep to wait dns record to take effect. --- diff --git a/dnsapi/dns-cf.sh b/dnsapi/dns-cf.sh index ac3643c4..888e9b3f 100755 --- a/dnsapi/dns-cf.sh +++ b/dnsapi/dns-cf.sh @@ -37,7 +37,8 @@ dns-cf-add() { if _cf_rest POST "/zones/$_domain_id/dns_records" "{\"type\":\"TXT\",\"name\":\"$fulldomain\",\"content\":\"$txtvalue\",\"ttl\":120}"; then if printf $response | grep $fulldomain > /dev/null ; then _info "Added, sleeping 10 seconds" - sleep 1 + sleep 10 + #todo: check if the record takes effect return 0 else _err "Add txt record error." @@ -54,6 +55,7 @@ dns-cf-add() { if [ "$?" == "0" ]; then _info "Updated, sleeping 10 seconds" sleep 10 + #todo: check if the record takes effect return 0; fi _err "Update error" diff --git a/le.sh b/le.sh index c4437822..a6122418 100755 --- a/le.sh +++ b/le.sh @@ -673,6 +673,10 @@ issue() { fi + if [ "$dnsadded" == '1' ] ; then + _info "Sleep 60 seconds for the txt records to take effect" + sleep 60 + fi _debug "ok, let's start to verify" ventries=$(echo "$vlist" | sed "s/,/ /g")