From b153e72ca5e04393f2f0c39e071993c9510b2906 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 17 Apr 2021 08:55:55 +0200 Subject: [PATCH] Update install --- scripts/install | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/scripts/install b/scripts/install index a978443..af0c440 100755 --- a/scripts/install +++ b/scripts/install @@ -82,15 +82,17 @@ ynh_script_progression --message="Finding an available port..." --weight=3 # Find an available port port=$(ynh_find_port --port=8443) -turnserver_port=$(ynh_find_port --port=1194) - -# Open the ports -ynh_exec_warn_less yunohost firewall allow Both $turnserver_port - -# Store opened ports ynh_app_setting_set --app=$app --key=port --value=$port + +# Find an available port for TURN +turnserver_port=$(ynh_find_port --port=1194) ynh_app_setting_set --app=$app --key=turnserver_port --value=$turnserver_port +# Open TURN port +ynh_script_progression --message="Configuring firewall..." --weight=1 + +ynh_exec_warn_less yunohost firewall allow Both $turnserver_port + #================================================= # INSTALL DEPENDENCIES #================================================= @@ -210,7 +212,7 @@ groups="$final_path/groups" mkdir -p "$groups" #================================================= -# MODIFY A CONFIG FILE +# MODIFY A CONFIG FILES #================================================= ynh_add_config --template="../conf/passwd" --destination="$final_path/data/passwd"