1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ergo_ynh.git synced 2024-09-03 18:26:31 +02:00

close firewall on uninstall

This commit is contained in:
navanchauhan 2022-05-31 16:13:50 -06:00
parent 6b9d7ad623
commit 8fd611eef1

View file

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