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:
parent
2e142769d3
commit
5afd7dd52a
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue