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
17fbfd14
Commit
17fbfd14
authored
Jun 30, 2017
by
RaidenII
Browse files
Minor fixes.
parent
d0f5aece
Changes
2
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_duckdns.sh
View file @
17fbfd14
...
...
@@ -17,7 +17,7 @@ dns_duckdns_add() {
txtvalue
=
$2
# We'll extract the domain/username from full domain
DuckDNS_domain
=
$(
printf
"%s
\n
"
"
$fulldomain
"
| rev |
cut
-d
\
.
-f
3 | rev
)
DuckDNS_domain
=
$(
printf
"%s
\n
"
"
$fulldomain
"
| rev |
cut
-d
.
-f
3 | rev
)
if
[
-z
"
$DuckDNS_domain
"
]
;
then
_err
"Error extracting the domain."
...
...
dnsapi/dns_namecom.sh
View file @
17fbfd14
...
...
@@ -76,7 +76,7 @@ dns_namecom_rm() {
if
_namecom_rest GET
"dns/list/
$_domain
"
;
then
retcode
=
$(
printf
"%s
\n
"
"
$response
"
| _egrep_o
"
\"
code
\"
:100"
)
if
[
!
-z
"
$retcode
"
]
;
then
_record_id
=
$(
printf
"%s
\n
"
"
$response
"
| _egrep_o
"
\"
record_id
\"
:
\"
[0-9]+
\"
,
\"
name
\"
:
\"
$fulldomain
\"
,
\"
type
\"
:
\"
TXT
\"
"
|
cut
-d
:
-f
2 |
cut
-d
\"
-f
2
)
_record_id
=
$(
printf
"%s
\n
"
"
$response
"
| _egrep_o
"
\"
record_id
\"
:
\"
[0-9]+
\"
,
\"
name
\"
:
\"
$fulldomain
\"
,
\"
type
\"
:
\"
TXT
\"
"
|
cut
-d
\"
-f
4
)
_debug record_id
"
$_record_id
"
_info
"Successfully retrieved the record id for ACME challenge."
else
...
...
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