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
251fc37c
Commit
251fc37c
authored
Mar 13, 2016
by
neil
Browse files
minor, change debug info
parent
34c27e09
Changes
1
Hide whitespace changes
Inline
Side-by-side
le.sh
View file @
251fc37c
...
...
@@ -66,12 +66,12 @@ _base64() {
_ss
()
{
_port
=
"
$1
"
if
command
-v
"netstat"
>
/dev/null 2>&1
;
then
_
err
"Using: netstat"
_
debug
"Using: netstat"
netstat
-ntpl
|
grep
:
$_port
" "
return
0
fi
if
command
-v
"ss"
>
/dev/null 2>&1
;
then
_
err
"Using: ss"
_
debug
"Using: ss"
ss
-ntpl
|
grep
:
$_port
" "
return
0
fi
...
...
@@ -635,7 +635,7 @@ issue() {
fi
_setopt
"
$DOMAIN_CONF
"
"Le_HTTPPort"
"="
"
$Le_HTTPPort
"
netprc
=
"
$(
_ss
"
$Le_HTTPPort
"
)
"
netprc
=
"
$(
_ss
"
$Le_HTTPPort
"
|
grep
"
$Le_HTTPPort
"
)
"
if
[
"
$netprc
"
]
;
then
_err
"
$netprc
"
_err
"tcp port
$Le_HTTPPort
is already used by
$(
echo
"
$netprc
"
|
cut
-d
:
-f
4
)
"
...
...
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