1
0
mirror of https://github.com/hiskaNG/acme.sh.git synced 2026-08-17 11:23:09 +00:00

Merge pull request #439 from Neilpang/dev

support CloudXNS rm method
This commit is contained in:
neil
2016-12-04 22:22:54 +08:00
committed by GitHub
+9 -1
View File
@@ -58,7 +58,15 @@ dns_cx_add() {
#fulldomain
dns_cx_rm() {
fulldomain=$1
REST_API="$CX_Api"
if _get_root "$fulldomain"; then
record_id=""
existing_records "$_domain" "$_sub_domain"
if ! [ "$record_id" = "" ]; then
_rest DELETE "record/$record_id/$_domain_id" "{}"
_info "Deleted record ${fulldomain}"
fi
fi
}
#usage: root sub