mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Use ss instead of netcat to check if a port is already used ... c.f. PR #827
This commit is contained in:
parent
9a95004efc
commit
a89fd44ab6
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ ynh_port_available () {
|
|||
# Manage arguments with getopts
|
||||
ynh_handle_getopts_args "$@"
|
||||
|
||||
if netcat -z 127.0.0.1 $port;
|
||||
if ss -nltu | grep -q -w :$port
|
||||
then
|
||||
return 1
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue