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
b3f915b5
Commit
b3f915b5
authored
Dec 07, 2016
by
neil
Committed by
GitHub
Dec 07, 2016
Browse files
fix deactivate for solaris
fix deactivate for solaris
parents
c107f363
03d3f3af
Changes
2
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
b3f915b5
...
...
@@ -3469,7 +3469,7 @@ _deactivate() {
return
1
fi
entry
=
"
$(
printf
"%s
\n
"
"
$response
"
| _egrep_o
'
[^\{]*
"status":"valid","uri"[^
\
}]*'
)
"
entry
=
"
$(
printf
"%s
\n
"
"
$response
"
| _egrep_o
'
{"type":".*",
"status":"valid","uri"[^}]*'
)
"
_debug entry
"
$entry
"
if
[
-z
"
$entry
"
]
;
then
...
...
dnsapi/dns_dp.sh
View file @
b3f915b5
...
...
@@ -104,6 +104,7 @@ existing_records() {
if
_contains
"
$response
"
"Action completed successful"
;
then
count
=
$(
printf
"%s"
"
$response
"
|
grep
'<type>TXT</type>'
|
wc
-l
|
tr
-d
' '
)
record_id
=
$(
printf
"%s"
"
$response
"
|
grep
'^<id>'
|
tail
-1
|
cut
-d
'>'
-f
2 |
cut
-d
'<'
-f
1
)
_debug record_id
"
$record_id
"
return
0
else
_err
"get existing records error."
...
...
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