From 0505c2cba63562a39fec590d9f1c3ccd85be3550 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 26 Oct 2020 21:51:43 +0100 Subject: [PATCH] Fix weird stuff about firewall --- scripts/install | 2 +- scripts/remove | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/scripts/install b/scripts/install index 753dfbe..3147141 100644 --- a/scripts/install +++ b/scripts/install @@ -63,7 +63,7 @@ ynh_app_setting_set --app=$app --key=ynh_user_password --value=$ynh_user_passwor #================================================= # FIND AND OPEN A PORT #================================================= -ynh_script_progression --message="Configuring firewall..." +ynh_script_progression --message="Finding an available port..." # Find an available port port=$(ynh_find_port --port=8095) diff --git a/scripts/remove b/scripts/remove index 578eb37..db6153d 100644 --- a/scripts/remove +++ b/scripts/remove @@ -77,16 +77,6 @@ ynh_script_progression --message="Removing nginx web server configuration..." # Remove the dedicated nginx config ynh_remove_nginx_config -#================================================= -# CLOSE A PORT -#================================================= - -if yunohost firewall list | grep -q "\- $port$" -then - ynh_script_progression --message="Closing port $port..." - ynh_exec_warn_less yunohost firewall disallow TCP $port -fi - #================================================= # SPECIFIC REMOVE #=================================================