From a6c7b5d6264828c3597ae773f0ebe0636e208139 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Tue, 25 May 2021 13:42:30 +0200 Subject: [PATCH] =?UTF-8?q?Simplify=20ynh=5Fport=5Favailable=20test=20in?= =?UTF-8?q?=20install=C2=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Kayou --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index e5bc27f..aa228d8 100644 --- a/scripts/install +++ b/scripts/install @@ -85,7 +85,7 @@ if [ $discovery -eq 1 ]; then fi # Open port 7359 for client auto-discovery - if [[ $(ynh_port_available --port=7359) -eq 0 ]]; then + if ynh_port_available --port=7359; then ynh_exec_warn_less yunohost firewall allow UDP 7359 ynh_app_setting_set --app=$app --key=discovery_client --value=1 else