Browse Source

added dns record already exists handling

pull/1832/head
Roman Lumetsberger 7 years ago
parent
commit
92b95020d5
  1. 5
      dnsapi/dns_plesk.sh

5
dnsapi/dns_plesk.sh

@ -101,7 +101,12 @@ function add_txt_record() {
plesk_api "$request"
if ! _contains "${response}" '<status>ok</status>'; then
# check if record already exists
if ! _contains "${response}" '<errcode>1007</errcode>'; then
return 1
else
return 0
fi
fi
return 0
}

Loading…
Cancel
Save