From 0d1d8ffa6ba4cfde42cbcc9f6627ee38a81e4beb Mon Sep 17 00:00:00 2001 From: Kayou Date: Tue, 23 Jun 2020 12:34:19 +0200 Subject: [PATCH] Update install --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index ce60872..7037ad0 100644 --- a/scripts/install +++ b/scripts/install @@ -106,8 +106,8 @@ ynh_install_app_dependencies $pkg_dependencies #https://docs.gitlab.com/ce/install/requirements.html#puma-workers puma_worker_processes=$(( $(nproc) > 2 ? $(nproc) : 2 )) -# If the server has at least 2GB of RAM -if [ $(ynh_get_ram --total --ignore_swap) -ge 2000 ]; then +# If the server has less than 2GB of RAM +if [ $(ynh_get_ram --total --ignore_swap) -lt 2000 ]; then puma_min_threads=1 puma_max_threads=1 else