From cf0c23049c8554a792f94e8583ea8ed36fc9ab95 Mon Sep 17 00:00:00 2001 From: rajcz Date: Fri, 3 Jun 2016 12:35:39 +0200 Subject: [PATCH] Added new parameter dnssleep Added new parametr dnssleep for better handling sleep time after succesful insert of records via dns api --- acme.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/acme.sh b/acme.sh index 83ad3d2a..ebdd6edb 100755 --- a/acme.sh +++ b/acme.sh @@ -1371,8 +1371,8 @@ issue() { fi if [ "$dnsadded" = '1' ] ; then - _info "Sleep 60 seconds for the txt records to take effect" - sleep 60 + _info "Sleep $dnssleep seconds for the txt records to take effect" + sleep $dnssleep fi _debug "ok, let's start to verify" @@ -2163,6 +2163,7 @@ Parameters: --standalone Use standalone mode. --apache Use apache mode. --dns [dns_cf|dns_dp|dns_cx|/path/to/api/file] Use dns mode or dns api. + --dnssleep # Number of seconds for sleep (for reload dns cache etc.), after succesful insert dns records via dns api. --keylength, -k [2048] Specifies the domain key length: 2048, 3072, 4096, 8192 or ec-256, ec-384. --accountkeylength, -ak [2048] Specifies the account key length. @@ -2359,6 +2360,10 @@ _process() { _webroot="$_webroot,$wvalue" fi ;; + --dnssleep + dnssleep="$2" + shift + ;; --keylength|-k) _keylength="$2" accountkeylength="$2"