From ee2f0ca80c4d8bdae9822b1fa6bd889b93f67b38 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 9 Apr 2021 08:28:50 +0200 Subject: [PATCH] Remove open firewall --- scripts/install | 2 +- scripts/remove | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) 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