Update network

This commit is contained in:
Alexandre Aubin 2020-03-31 03:10:30 +02:00
parent cb68b212b8
commit 97e83337d4

View file

@ -17,7 +17,7 @@ ynh_find_port () {
ynh_handle_getopts_args "$@" ynh_handle_getopts_args "$@"
test -n "$port" || ynh_die --message="The argument of ynh_find_port must be a valid port." test -n "$port" || ynh_die --message="The argument of ynh_find_port must be a valid port."
while ss -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 do
port=$((port+1)) # Else, pass to next port port=$((port+1)) # Else, pass to next port
done done