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:
parent
bab7a93c9b
commit
ee2f0ca80c
2 changed files with 1 additions and 6 deletions
|
@ -73,7 +73,7 @@ ynh_app_setting_set --app=$app --key=turn_port --value=$turn_port
|
||||||
|
|
||||||
# Open the ports
|
# Open the ports
|
||||||
ynh_script_progression --message="Configuring firewall..." --weight=1
|
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
|
ynh_exec_warn_less yunohost firewall allow Both $turn_port
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -63,11 +63,6 @@ ynh_remove_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Closing ports..." --weight=1
|
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$"
|
if yunohost firewall list | grep -q "\- $turn_port$"
|
||||||
then
|
then
|
||||||
ynh_exec_warn_less yunohost firewall disallow both $turn_port
|
ynh_exec_warn_less yunohost firewall disallow both $turn_port
|
||||||
|
|
Loading…
Add table
Reference in a new issue