1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jitsi_ynh.git synced 2024-09-03 19:35:57 +02:00

add max_memory parameter

This commit is contained in:
rosbeef andino 2022-04-03 21:34:59 -04:00 committed by GitHub
parent 03acb6a9e2
commit bcb0bcf5b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,7 @@ ynh_abort_if_errors
#=================================================
domain=$YNH_APP_ARG_DOMAIN
maxmembers=$YNH_APP_ARG_MAXMEMBERS
path_url="/"
app=$YNH_APP_INSTANCE_NAME
@ -42,6 +43,8 @@ focus_user="focus"
videobridge_user="jvb"
max_memory=$((1.5*$maxmembers))
#=================================================
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
#=================================================
@ -60,6 +63,7 @@ ynh_script_progression --message="Storing installation settings..."
ynh_app_setting_set --app=$app --key=domain --value=$domain
ynh_app_setting_set --app=$app --key=path --value=$path_url
ynh_app_setting_set --app=$app --key=max_memory --value=$max_memory
ynh_app_setting_set --app=$app --key=focus_user --value=$focus_user
ynh_app_setting_set --app=$app --key=focus_password --value=$focus_password
ynh_app_setting_set --app=$app --key=focus_secret --value=$focus_secret