From bcb0bcf5b5d5a7651287d5e427065625ad3ad3d1 Mon Sep 17 00:00:00 2001 From: rosbeef andino Date: Sun, 3 Apr 2022 21:34:59 -0400 Subject: [PATCH] add max_memory parameter --- scripts/install | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/install b/scripts/install index 8f5f49d..9a33a94 100644 --- a/scripts/install +++ b/scripts/install @@ -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