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

Update requirements'

This commit is contained in:
Kay0u 2021-02-23 14:16:08 +01:00
parent 2e142769d3
commit 5afd7dd52a
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -196,9 +196,10 @@ ynh_app_setting_set --app=$app --key=puma_workers --value=$puma_worker_processes
total_swap=$(ynh_get_ram --total --only_swap) total_swap=$(ynh_get_ram --total --only_swap)
swap_needed=0 swap_needed=0
# https://docs.gitlab.com/ce/install/requirements.html#memory
# Need at least 2Go of swap # Need at least 2Go of swap
if [ $(($total_swap + $swap_needed)) -lt 2048 ]; then if [ $total_swap -lt 2048 ]; then
swap_needed=$((2048 - $total_swap)) swap_needed=$((2048 - total_swap))
fi fi
if [ $swap_needed -gt 0 ]; then if [ $swap_needed -gt 0 ]; then