1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wireguard_ynh.git synced 2024-09-03 20:35:58 +02:00

Close all ports upon removal

Closes #12
This commit is contained in:
tituspijean 2021-03-03 19:41:41 +01:00
parent 8a8a05b0fe
commit 59d1f06fcc

View file

@ -94,6 +94,12 @@ then
ynh_exec_warn_less yunohost firewall disallow TCP $port_wg
fi
if yunohost firewall list | grep -q "\- $port$"
then
ynh_script_progression --message="Closing port $port..." --weight=1
ynh_exec_warn_less yunohost firewall disallow TCP $port
fi
#=================================================
# SPECIFIC REMOVE
#=================================================