diff --git a/deploy/README.md b/deploy/README.md new file mode 100644 index 0000000..580eaac --- /dev/null +++ b/deploy/README.md @@ -0,0 +1 @@ +#Using deploy api diff --git a/dnsapi/dns_lua.sh b/dnsapi/dns_lua.sh index 42d55e8..828e801 100755 --- a/dnsapi/dns_lua.sh +++ b/dnsapi/dns_lua.sh @@ -67,7 +67,7 @@ dns_lua_add() { _debug "record_id" "$record_id" _LUA_rest PUT "zones/$_domain_id/records/$record_id" "{\"id\":$record_id,\"type\":\"TXT\",\"name\":\"$fulldomain.\",\"content\":\"$txtvalue\",\"zone_id\":$_domain_id,\"ttl\":120}" - if [ "$?" = "0" ] && _contains "$response" "updated_at" ; then + if [ "$?" = "0" ] && _contains "$response" "updated_at"; then _info "Updated!" #todo: check if the record takes effect return 0