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
df62150b
Commit
df62150b
authored
Dec 06, 2016
by
neilpang
Browse files
Merge branch 'dev' of
https://github.com/Neilpang/acme.sh
into dev
parents
eea52a5f
187ef299
Changes
2
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_aws.sh
View file @
df62150b
...
...
@@ -72,7 +72,7 @@ _get_root() {
fi
if
_contains
"
$response
"
"<Name>
$h
.</Name>"
;
then
hostedzone
=
"
$(
echo
"
$response
"
| _egrep_o
"<HostedZone>.*<Name>
$h
.</Name>.*</HostedZone>"
)
"
hostedzone
=
"
$(
echo
"
$response
"
|
sed
's/<HostedZone>/\n&/g'
|
_egrep_o
"<HostedZone>.*<Name>
$h
.</Name>.*</HostedZone>"
)
"
_debug hostedzone
"
$hostedzone
"
if
[
-z
"
$hostedzone
"
]
;
then
_err
"Error, can not get hostedzone."
...
...
dnsapi/dns_cx.sh
View file @
df62150b
...
...
@@ -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
...
...
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