Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
5c09788e
Commit
5c09788e
authored
Jul 18, 2019
by
neilpang
Browse files
fix error
parent
5e970cdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_namesilo.sh
View file @
5c09788e
...
@@ -60,8 +60,8 @@ dns_namesilo_rm() {
...
@@ -60,8 +60,8 @@ dns_namesilo_rm() {
retcode
=
$(
printf
"%s
\n
"
"
$response
"
| _egrep_o
"<code>300"
)
retcode
=
$(
printf
"%s
\n
"
"
$response
"
| _egrep_o
"<code>300"
)
if
[
"
$retcode
"
]
;
then
if
[
"
$retcode
"
]
;
then
_record_id
=
$(
echo
"
$response
"
| _egrep_o
"<record_id>([^<]*)</record_id><type>TXT</type><host>
$fulldomain
</host>"
| _egrep_o
"<record_id>([^<]*)</record_id>"
|
sed
-r
"s/<record_id>([^<]*)<
\/
record_id>/
\1
/"
|
tail
-n
1
)
_record_id
=
$(
echo
"
$response
"
| _egrep_o
"<record_id>([^<]*)</record_id><type>TXT</type><host>
$fulldomain
</host>"
| _egrep_o
"<record_id>([^<]*)</record_id>"
|
sed
-r
"s/<record_id>([^<]*)<
\/
record_id>/
\1
/"
|
tail
-n
1
)
_debug record_id
"
$_record_id
"
_debug
_
record_id
"
$_record_id
"
if
[
"
$record_id
"
]
;
then
if
[
"
$
_
record_id
"
]
;
then
_info
"Successfully retrieved the record id for ACME challenge."
_info
"Successfully retrieved the record id for ACME challenge."
else
else
_info
"Empty record id, it seems no such record."
_info
"Empty record id, it seems no such record."
...
...
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