mirror of
https://github.com/YunoHost-Apps/lutim_ynh.git
synced 2024-09-03 19:36:24 +02:00
Check port sans erreur
This commit is contained in:
parent
3244899fe4
commit
627ea262b3
1 changed files with 2 additions and 4 deletions
|
@ -73,10 +73,8 @@ domain_regex=$(echo "$domain" | sed 's@-@.@g')
|
|||
|
||||
# Cherche un port libre.
|
||||
port=8095
|
||||
sudo yunohost app checkport $port
|
||||
while [[ ! $? -eq 0 ]]; do
|
||||
port=$((port+1))
|
||||
sudo yunohost app checkport $port
|
||||
while ! sudo yunohost app checkport $port ; do
|
||||
port=$((port+1))
|
||||
done
|
||||
|
||||
# Enregistre les infos dans la config YunoHost
|
||||
|
|
Loading…
Add table
Reference in a new issue