1
0
mirror of https://github.com/hiskaNG/acme.sh.git synced 2026-08-11 16:33:02 +00:00
This commit is contained in:
nytral
2016-11-07 22:16:00 +01:00
committed by neilpang
parent b9091e14b3
commit 3ec72fcee9
+1 -1
View File
@@ -46,7 +46,7 @@ dns_me_add(){
if [ "$count" = "0" ] ; then
_info "Adding record"
if _me_rest POST "$_domain_id/records/" "{\"type\":\"TXT\",\"name\":\"$_sub_domain\",\"value\":\"$txtvalue\",\"gtdLocation\":\"DEFAULT\",\"ttl\":120}"; then
if printf -- "%s" "$response" | grep id: > /dev/null ; then
if [ "$?" = "0" ]; then
_info "Added"
#todo: check if the record takes effect
return 0