From 89ab4bd4dc7083d43666ce8ad260fd6dd4c77b48 Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Sat, 26 Oct 2019 13:25:38 +0200 Subject: [PATCH] Use ss instead of netstat --- data/helpers.d/network | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/helpers.d/network b/data/helpers.d/network index 5fc41fa50..948a327b0 100644 --- a/data/helpers.d/network +++ b/data/helpers.d/network @@ -17,7 +17,7 @@ ynh_find_port () { ynh_handle_getopts_args "$@" test -n "$port" || ynh_die --message="The argument of ynh_find_port must be a valid port." - while netstat -nltu | grep -q -w :$port # Check if the port is free + while ss -nltu | grep -q -w :$port # Check if the port is free do port=$((port+1)) # Else, pass to next port done