Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
8cf07255
Commit
8cf07255
authored
Dec 04, 2016
by
neil
Committed by
GitHub
Dec 04, 2016
Browse files
Merge pull request #433 from kookxiang/dev
Automatically delete acme txt record for CloudXNS
parents
a6270667
8379f015
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_cx.sh
View file @
8cf07255
...
@@ -58,7 +58,15 @@ dns_cx_add() {
...
@@ -58,7 +58,15 @@ dns_cx_add() {
#fulldomain
#fulldomain
dns_cx_rm
()
{
dns_cx_rm
()
{
fulldomain
=
$1
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
#usage: root sub
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment