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

Update install

This commit is contained in:
Kayou 2020-06-23 12:34:19 +02:00 committed by GitHub
parent ae2358f78f
commit 0d1d8ffa6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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