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
eb5c2e98
Commit
eb5c2e98
authored
May 22, 2019
by
David Kerr
Browse files
Merge branch 'dev' of
https://github.com/Neilpang/acme.sh
into dev
parents
7368a790
54708c61
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
LICENSE.md
0 → 100644
View file @
eb5c2e98
This diff is collapsed.
Click to expand it.
dnsapi/dns_aws.sh
View file @
eb5c2e98
...
@@ -49,7 +49,7 @@ dns_aws_add() {
...
@@ -49,7 +49,7 @@ dns_aws_add() {
_debug _sub_domain
"
$_sub_domain
"
_debug _sub_domain
"
$_sub_domain
"
_debug _domain
"
$_domain
"
_debug _domain
"
$_domain
"
_info
"Geting existing records for
$fulldomain
"
_info
"Get
t
ing existing records for
$fulldomain
"
if
!
aws_rest GET
"2013-04-01
$_domain_id
/rrset"
"name=
$fulldomain
&type=TXT"
;
then
if
!
aws_rest GET
"2013-04-01
$_domain_id
/rrset"
"name=
$fulldomain
&type=TXT"
;
then
return
1
return
1
fi
fi
...
...
dnsapi/dns_hostingde.sh
View file @
eb5c2e98
...
@@ -53,18 +53,6 @@ _hostingde_parse() {
...
@@ -53,18 +53,6 @@ _hostingde_parse() {
fi
fi
}
}
_hostingde_parse_no_strip_whitespace
()
{
find
=
"
${
1
}
"
if
[
"
${
2
}
"
]
;
then
notfind
=
"
${
2
}
"
fi
if
[
"
${
notfind
}
"
]
;
then
_egrep_o
\"
"
${
find
}
\"
:.*"
|
grep
-v
"
${
notfind
}
"
|
cut
-d
':'
-f
2 |
cut
-d
','
-f
1
else
_egrep_o
\"
"
${
find
}
\"
:.*"
|
cut
-d
':'
-f
2 |
cut
-d
','
-f
1
fi
}
_hostingde_getZoneConfig
()
{
_hostingde_getZoneConfig
()
{
_info
"Getting ZoneConfig"
_info
"Getting ZoneConfig"
curZone
=
"
${
fulldomain
#*.
}
"
curZone
=
"
${
fulldomain
#*.
}
"
...
@@ -97,12 +85,12 @@ _hostingde_getZoneConfig() {
...
@@ -97,12 +85,12 @@ _hostingde_getZoneConfig() {
zoneConfigDnsServerGroupId
=
$(
echo
"
${
curResult
}
"
| _hostingde_parse
"dnsServerGroupId"
)
zoneConfigDnsServerGroupId
=
$(
echo
"
${
curResult
}
"
| _hostingde_parse
"dnsServerGroupId"
)
zoneConfigEmailAddress
=
$(
echo
"
${
curResult
}
"
| _hostingde_parse
"emailAddress"
)
zoneConfigEmailAddress
=
$(
echo
"
${
curResult
}
"
| _hostingde_parse
"emailAddress"
)
zoneConfigDnsSecMode
=
$(
echo
"
${
curResult
}
"
| _hostingde_parse
"dnsSecMode"
)
zoneConfigDnsSecMode
=
$(
echo
"
${
curResult
}
"
| _hostingde_parse
"dnsSecMode"
)
zoneConfigTemplateValues
=
$(
echo
"
${
curResult
}
"
| _hostingde_parse
_no_strip_whitespace
"templateValues"
)
zoneConfigTemplateValues
=
$(
echo
"
${
curResult
}
"
| _hostingde_parse
"templateValues"
)
if
[
"
$zoneConfigTemplateValues
"
!=
"null"
]
;
then
if
[
"
$zoneConfigTemplateValues
"
!=
"null"
]
;
then
_debug
"Zone is tied to a template."
_debug
"Zone is tied to a template."
zoneConfigTemplateValuesTemplateId
=
$(
echo
"
${
curResult
}
"
| _hostingde_parse
"templateId"
)
zoneConfigTemplateValuesTemplateId
=
$(
echo
"
${
curResult
}
"
| _hostingde_parse
"templateId"
)
zoneConfigTemplateValuesTemplateName
=
$(
echo
"
${
curResult
}
"
| _hostingde_parse
_no_strip_whitespace
"templateName"
)
zoneConfigTemplateValuesTemplateName
=
$(
echo
"
${
curResult
}
"
| _hostingde_parse
"templateName"
)
zoneConfigTemplateValuesTemplateReplacementsIPv4
=
$(
echo
"
${
curResult
}
"
| _hostingde_parse
"ipv4Replacement"
)
zoneConfigTemplateValuesTemplateReplacementsIPv4
=
$(
echo
"
${
curResult
}
"
| _hostingde_parse
"ipv4Replacement"
)
zoneConfigTemplateValuesTemplateReplacementsIPv6
=
$(
echo
"
${
curResult
}
"
| _hostingde_parse
"ipv6Replacement"
)
zoneConfigTemplateValuesTemplateReplacementsIPv6
=
$(
echo
"
${
curResult
}
"
| _hostingde_parse
"ipv6Replacement"
)
zoneConfigTemplateValuesTemplateReplacementsMailIPv4
=
$(
echo
"
${
curResult
}
"
| _hostingde_parse
"mailIpv4Replacement"
)
zoneConfigTemplateValuesTemplateReplacementsMailIPv4
=
$(
echo
"
${
curResult
}
"
| _hostingde_parse
"mailIpv4Replacement"
)
...
...
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