diff --git a/scripts/install b/scripts/install index 74dd724..b188908 100755 --- a/scripts/install +++ b/scripts/install @@ -73,7 +73,7 @@ ynh_app_setting_set --app=$app --key=turn_port --value=$turn_port # Open the ports ynh_script_progression --message="Configuring firewall..." --weight=1 -ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port + ynh_exec_warn_less yunohost firewall allow Both $turn_port #================================================= diff --git a/scripts/remove b/scripts/remove index 9ae5c0f..df202ee 100755 --- a/scripts/remove +++ b/scripts/remove @@ -63,11 +63,6 @@ ynh_remove_nginx_config #================================================= ynh_script_progression --message="Closing ports..." --weight=1 -if yunohost firewall list | grep -q "\- $port$" -then - ynh_exec_warn_less yunohost firewall disallow TCP $port -fi - if yunohost firewall list | grep -q "\- $turn_port$" then ynh_exec_warn_less yunohost firewall disallow both $turn_port