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 #=================================================