1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/minidlna_ynh.git synced 2024-09-03 19:36:34 +02:00

Check port sans erreur

This commit is contained in:
Maniack Crudelis 2016-06-04 23:40:33 +02:00
parent 9dff62aa54
commit 0ae7e59552

View file

@ -41,10 +41,8 @@ TRAP_ON
# Cherche un port libre.
port=48200
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
# Ouvre les ports dans le firewall