mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-12 17:31:47 +00:00
remove dependency to "netstat"
This commit is contained in:
parent
23cb43c85f
commit
4013bfd02a
9
le.sh
9
le.sh
@ -312,14 +312,11 @@ issue() {
|
|||||||
_err "Please install netcat(nc) tools first."
|
_err "Please install netcat(nc) tools first."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
if ! command -v "netstat" > /dev/null ; then
|
|
||||||
_err "Please install netstat first."
|
netprc="$(ss -ntpl | grep ':80 ')"
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
netprc="$(netstat -ntpl | grep ':80 ')"
|
|
||||||
if [ "$netprc" ] ; then
|
if [ "$netprc" ] ; then
|
||||||
_err "$netprc"
|
_err "$netprc"
|
||||||
_err "tcp port 80 is already used by $(echo "$netprc" | cut -d '/' -f 2)"
|
_err "tcp port 80 is already used by $(echo "$netprc" | cut -d : -f 4)"
|
||||||
_err "Please stop it first"
|
_err "Please stop it first"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user