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

Remove open firewall

This commit is contained in:
ericgaspar 2021-04-09 08:28:50 +02:00
parent bab7a93c9b
commit ee2f0ca80c
2 changed files with 1 additions and 6 deletions

View file

@ -73,7 +73,7 @@ ynh_app_setting_set --app=$app --key=turn_port --value=$turn_port
# Open the ports
ynh_script_progression --message="Configuring firewall..." --weight=1
ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port
ynh_exec_warn_less yunohost firewall allow Both $turn_port
#=================================================

View file

@ -63,11 +63,6 @@ ynh_remove_nginx_config
#=================================================
ynh_script_progression --message="Closing ports..." --weight=1
if yunohost firewall list | grep -q "\- $port$"
then
ynh_exec_warn_less yunohost firewall disallow TCP $port
fi
if yunohost firewall list | grep -q "\- $turn_port$"
then
ynh_exec_warn_less yunohost firewall disallow both $turn_port