From fcf240120aed85bec3fd98575482f848efc38f54 Mon Sep 17 00:00:00 2001 From: anmol Date: Sat, 17 Oct 2020 17:58:42 +0530 Subject: [PATCH] fix upgrade --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 6d3d249..0d042ca 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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$"