mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-07-11 23:28:50 +00:00
Check for DNS records to apply, if not then sleep
This commit is contained in:
11
acme.sh
11
acme.sh
@ -3882,6 +3882,17 @@ $_authorizations_map"
|
||||
|
||||
_info "Sleep $(__green $Le_DNSSleep) seconds for the txt records to take effect"
|
||||
_sleep "$Le_DNSSleep"
|
||||
|
||||
while true; do
|
||||
doesTxtExist=$(dig @$(dig @8.8.8.8 $_main_domain ns +short | head -n1) TXT $txtdomain | grep "$txt")
|
||||
if [ -z "$doesTxtExist" ]; then
|
||||
_info "DNS TXT record has not been applied yet, sleep $(__green 3) seconds for the txt records to take effect"
|
||||
_sleep "3"
|
||||
else
|
||||
_info "DNS records has been applied"
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
NGINX_RESTORE_VLIST=""
|
||||
|
Reference in New Issue
Block a user