1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/galene_ynh.git synced 2024-09-03 18:36:31 +02:00

Update install

This commit is contained in:
ericgaspar 2021-04-17 08:55:55 +02:00
parent cd8bc5e0da
commit b153e72ca5

View file

@ -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"