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:
parent
51678b834d
commit
fcf240120a
1 changed files with 2 additions and 2 deletions
|
@ -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$"
|
||||
|
|
Loading…
Add table
Reference in a new issue