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