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:
parent
9dff62aa54
commit
0ae7e59552
1 changed files with 2 additions and 4 deletions
|
@ -41,10 +41,8 @@ TRAP_ON
|
||||||
|
|
||||||
# Cherche un port libre.
|
# Cherche un port libre.
|
||||||
port=48200
|
port=48200
|
||||||
sudo yunohost app checkport $port
|
while ! sudo yunohost app checkport $port ; do
|
||||||
while [[ ! $? -eq 0 ]]; do
|
port=$((port+1))
|
||||||
port=$((port+1))
|
|
||||||
sudo yunohost app checkport $port
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Ouvre les ports dans le firewall
|
# Ouvre les ports dans le firewall
|
||||||
|
|
Loading…
Add table
Reference in a new issue