1
0
Fork 0
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:
Maniack Crudelis 2016-06-04 23:40:44 +02:00
parent 3244899fe4
commit 627ea262b3

View file

@ -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