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:
parent
ae2358f78f
commit
0d1d8ffa6b
1 changed files with 2 additions and 2 deletions
|
@ -106,8 +106,8 @@ ynh_install_app_dependencies $pkg_dependencies
|
||||||
#https://docs.gitlab.com/ce/install/requirements.html#puma-workers
|
#https://docs.gitlab.com/ce/install/requirements.html#puma-workers
|
||||||
puma_worker_processes=$(( $(nproc) > 2 ? $(nproc) : 2 ))
|
puma_worker_processes=$(( $(nproc) > 2 ? $(nproc) : 2 ))
|
||||||
|
|
||||||
# If the server has at least 2GB of RAM
|
# If the server has less than 2GB of RAM
|
||||||
if [ $(ynh_get_ram --total --ignore_swap) -ge 2000 ]; then
|
if [ $(ynh_get_ram --total --ignore_swap) -lt 2000 ]; then
|
||||||
puma_min_threads=1
|
puma_min_threads=1
|
||||||
puma_max_threads=1
|
puma_max_threads=1
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue