mirror of
https://github.com/YunoHost-Apps/13ft_ynh.git
synced 2024-09-03 18:06:03 +02:00
remove close a port
This commit is contained in:
parent
8bbf30587e
commit
6f0266bea7
1 changed files with 5 additions and 5 deletions
|
@ -107,11 +107,11 @@ ynh_remove_app_dependencies
|
||||||
# CLOSE A PORT
|
# CLOSE A PORT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
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_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
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE FAIL2BAN CONFIGURATION
|
# REMOVE FAIL2BAN CONFIGURATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue