mirror of
https://github.com/YunoHost-Apps/jitsi_ynh.git
synced 2024-09-03 19:35:57 +02:00
Closing port_component
This commit is contained in:
parent
8ea74ba3e5
commit
a51291b851
3 changed files with 7 additions and 3 deletions
|
@ -83,8 +83,6 @@ ynh_app_setting_set --app=$app --key=port_videobridge --value=$port_videobridge
|
||||||
|
|
||||||
# Find an available port
|
# Find an available port
|
||||||
port_component=$(ynh_find_port --port=5347)
|
port_component=$(ynh_find_port --port=5347)
|
||||||
# Open this port
|
|
||||||
ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port_component
|
|
||||||
ynh_app_setting_set --app=$app --key=port_component --value=$port_component
|
ynh_app_setting_set --app=$app --key=port_component --value=$port_component
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -101,7 +101,6 @@ ynh_print_info --message="Configuring firewall..."
|
||||||
# Open this port
|
# Open this port
|
||||||
ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port
|
ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port
|
||||||
ynh_exec_warn_less yunohost firewall allow --no-upnp UDP $port_videobridge
|
ynh_exec_warn_less yunohost firewall allow --no-upnp UDP $port_videobridge
|
||||||
ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port_component
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CONFIGURE METRONOME
|
# CONFIGURE METRONOME
|
||||||
|
|
|
@ -67,6 +67,13 @@ if ynh_version_gt "1.0.3387~ynh2" "${current_version}" ; then
|
||||||
yunohost tools regen-conf metronome
|
yunohost tools regen-conf metronome
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Closing port_component
|
||||||
|
if yunohost firewall list | grep -q "\- $port_component$"
|
||||||
|
then
|
||||||
|
ynh_print_info --message="Closing port $port_component..."
|
||||||
|
ynh_exec_warn_less yunohost firewall disallow TCP $port_component
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue