From 59d1f06fcca84bb26eecdba91a13b16743956782 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Wed, 3 Mar 2021 19:41:41 +0100 Subject: [PATCH] Close all ports upon removal Closes #12 --- scripts/remove | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/remove b/scripts/remove index 0a11336..0befc03 100644 --- a/scripts/remove +++ b/scripts/remove @@ -94,6 +94,12 @@ then ynh_exec_warn_less yunohost firewall disallow TCP $port_wg fi +if yunohost firewall list | grep -q "\- $port$" +then + ynh_script_progression --message="Closing port $port..." --weight=1 + ynh_exec_warn_less yunohost firewall disallow TCP $port +fi + #================================================= # SPECIFIC REMOVE #=================================================