From 8be2351afb8c310dbaaa0ad1499034a695bed027 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Tue, 25 May 2021 13:42:09 +0200 Subject: [PATCH] Simplify ynh_port_available test in install Co-authored-by: Kayou --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 559126c..e5bc27f 100644 --- a/scripts/install +++ b/scripts/install @@ -76,7 +76,7 @@ if [ $discovery -eq 1 ]; then ynh_script_progression --message="Configuring firewall..." --time --weight=1 # Open port 1900 for service auto-discovery - if [[ $(ynh_port_available --port=1900) -eq 0 ]]; then + if ynh_port_available --port=1900; then ynh_exec_warn_less yunohost firewall allow UDP 1900 ynh_app_setting_set --app=$app --key=discovery_service --value=1 else