mirror of
https://github.com/YunoHost-Apps/galene_ynh.git
synced 2024-09-03 18:36:31 +02:00
Update remove
This commit is contained in:
parent
5251c36e3f
commit
caa7cf72ae
1 changed files with 1 additions and 3 deletions
|
@ -86,22 +86,20 @@ ynh_remove_logrotate
|
||||||
#=================================================
|
#=================================================
|
||||||
# CLOSE A PORT
|
# CLOSE A PORT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Closing ports..." --weight=1
|
||||||
|
|
||||||
if yunohost firewall list | grep -q "\- $port$"
|
if yunohost firewall list | grep -q "\- $port$"
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Closing port $port..." --weight=1
|
|
||||||
ynh_exec_warn_less yunohost firewall disallow TCP $port
|
ynh_exec_warn_less yunohost firewall disallow TCP $port
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if yunohost firewall list | grep -q "\- $turnserver_tls_port$"
|
if yunohost firewall list | grep -q "\- $turnserver_tls_port$"
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Closing port $turnserver_tls_port..." --weight=1
|
|
||||||
ynh_exec_warn_less yunohost firewall disallow Both $turnserver_tls_port
|
ynh_exec_warn_less yunohost firewall disallow Both $turnserver_tls_port
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if yunohost firewall list | grep -q "\- $turnserver_alt_tls_port$"
|
if yunohost firewall list | grep -q "\- $turnserver_alt_tls_port$"
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Closing port $turnserver_alt_tls_port..." --weight=1
|
|
||||||
ynh_exec_warn_less yunohost firewall disallow Both $turnserver_alt_tls_port
|
ynh_exec_warn_less yunohost firewall disallow Both $turnserver_alt_tls_port
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue