mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Retire la commande ynh
This commit is contained in:
parent
3e9d086f7f
commit
cd93427a97
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
|||
ynh_find_port () {
|
||||
port=$(echo "$1" | sed 's/[^0-9]//g') # Eliminate all non-digit characters
|
||||
test -n "$port" || ynh_die "The argument of ynh_find_port must be a valid port."
|
||||
while ! sudo yunohost app checkport $port --quiet # Check if the port is free
|
||||
while netcat -z 127.0.0.1 $port # Check if the port is free
|
||||
do
|
||||
port=$((port+1)) # Else, pass to next port
|
||||
done
|
||||
|
|
Loading…
Add table
Reference in a new issue