]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
minor
authorneilpang <github@byneil.com>
Tue, 28 Feb 2017 12:56:11 +0000 (20:56 +0800)
committerneilpang <github@byneil.com>
Tue, 28 Feb 2017 12:56:11 +0000 (20:56 +0800)
dnsapi/dns_gandi_livedns.sh

index 76c4c8a96dbd79674bf5ea757dc0053eaf60aa90..d2521941284ada513fbbc5a4535e9d42a963d019 100755 (executable)
@@ -37,7 +37,7 @@ dns_gandi_livedns_add() {
   _debug sub_domain "$_sub_domain"
 
   _gandi_livedns_rest PUT "domains/$_domain/records/$_sub_domain/TXT" "{\"rrset_ttl\": 300, \"rrset_values\":[\"$txtvalue\"]}"
-
+  _contains "$response" '{"message": "Zone Record Created"}'
 }
 
 #Usage: fulldomain txtvalue
@@ -71,6 +71,7 @@ _get_root() {
   p=1
   while true; do
     h=$(printf "%s" "$domain" | cut -d . -f $i-100)
+    _debug h "$h"
     if [ -z "$h" ]; then
       #not valid
       return 1