mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 13:11:41 +00:00
fix cf
This commit is contained in:
parent
18e46962c2
commit
cfdaff5a46
@ -48,7 +48,7 @@ dns_cf_add(){
|
|||||||
if [ "$count" = "0" ] ; then
|
if [ "$count" = "0" ] ; then
|
||||||
_info "Adding record"
|
_info "Adding record"
|
||||||
if _cf_rest POST "zones/$_domain_id/dns_records" "{\"type\":\"TXT\",\"name\":\"$fulldomain\",\"content\":\"$txtvalue\",\"ttl\":120}"; then
|
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
|
if printf -- "%s" "$response" | grep $fulldomain > /dev/null ; then
|
||||||
_info "Added, sleeping 10 seconds"
|
_info "Added, sleeping 10 seconds"
|
||||||
sleep 10
|
sleep 10
|
||||||
#todo: check if the record takes effect
|
#todo: check if the record takes effect
|
||||||
|
Loading…
Reference in New Issue
Block a user