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:
parent
cd8bc5e0da
commit
b153e72ca5
1 changed files with 9 additions and 7 deletions
|
@ -82,15 +82,17 @@ ynh_script_progression --message="Finding an available port..." --weight=3
|
||||||
|
|
||||||
# Find an available port
|
# Find an available port
|
||||||
port=$(ynh_find_port --port=8443)
|
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
|
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
|
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
|
# INSTALL DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -210,7 +212,7 @@ groups="$final_path/groups"
|
||||||
mkdir -p "$groups"
|
mkdir -p "$groups"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# MODIFY A CONFIG FILE
|
# MODIFY A CONFIG FILES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_add_config --template="../conf/passwd" --destination="$final_path/data/passwd"
|
ynh_add_config --template="../conf/passwd" --destination="$final_path/data/passwd"
|
||||||
|
|
Loading…
Reference in a new issue