Merge remote-tracking branch 'upstream/master' into FreeDNS

This commit is contained in:
David Kerr
2017-02-04 10:51:52 -05:00
3 changed files with 10 additions and 5 deletions

View File

@ -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