1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/squid3_ynh.git synced 2024-09-03 20:26:11 +02:00

fix upgrade

This commit is contained in:
anmol 2020-10-17 17:58:42 +05:30
parent 51678b834d
commit fcf240120a

View file

@ -45,10 +45,10 @@ ynh_install_app_dependencies $pkg_dependencies
# CLOSE A PORT
#=================================================
# If #new_port is not defined test the $port and keep it open
if [ -z $new_port ] then
if [ -z $new_port ]; then
ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $squid_port
ynh_app_setting_set --app=$app --key=port --value=$squid_port
# If $new_port is define close the $port and open the $new_port
# If $new_port is define close the $port and open the $new_port
else
#Close $port
if yunohost firewall list | grep -q "\- $squid_port$"