mirror of
https://github.com/YunoHost-Apps/owncast_ynh.git
synced 2024-09-03 19:56:20 +02:00
Open port
This commit is contained in:
parent
e91f2b1d43
commit
bf92786cb4
1 changed files with 5 additions and 1 deletions
|
@ -65,7 +65,11 @@ ynh_app_setting_set --app=$app --key=port --value=$port
|
|||
|
||||
# Find an available port for stream
|
||||
stream_port=$(ynh_find_port --port=1935)
|
||||
ynh_app_setting_set --app=$app --key=turn_port --value=$stream_port
|
||||
ynh_app_setting_set --app=$app --key=stream_port --value=$stream_port
|
||||
|
||||
# Open the port
|
||||
ynh_script_progression --message="Configuring firewall..." --weight=1
|
||||
ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $stream_port
|
||||
|
||||
#=================================================
|
||||
# INSTALL DEPENDENCIES
|
||||
|
|
Loading…
Add table
Reference in a new issue