diff --git a/scripts/remove b/scripts/remove index 6a35297..abc41aa 100755 --- a/scripts/remove +++ b/scripts/remove @@ -81,6 +81,16 @@ ynh_mysql_remove_db --db_user=$db_user --db_name=$db_name # Remove metapackage and its dependencies #ynh_remove_app_dependencies +#================================================= +# CLOSE A PORT +#================================================= + +if yunohost firewall list | grep -q "\- $port$" +then + ynh_script_progression --message="Closing port $port..." --time --weight=1 + ynh_exec_warn_less yunohost firewall disallow TCP $port +fi + #================================================= # GENERIC FINALIZATION #=================================================