mirror of
https://github.com/YunoHost-Apps/gitlab_ynh.git
synced 2024-09-03 18:36:35 +02:00
Do not crash if we can't add more swap
This commit is contained in:
parent
6578eb2879
commit
8a227a0d55
3 changed files with 9 additions and 3 deletions
|
@ -142,7 +142,9 @@ fi
|
|||
|
||||
if [ $swap_needed -gt 0 ]; then
|
||||
ynh_script_progression --message="Adding $swap_needed Mo to swap..."
|
||||
ynh_add_swap --size=$swap_needed
|
||||
if ! ynh_add_swap --size=$swap_needed; then
|
||||
ynh_print_warn --message="Please add $swap_needed Mo to swap to make Gitlab work properly"
|
||||
fi
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -77,7 +77,9 @@ fi
|
|||
|
||||
if [ $swap_needed -gt 0 ]; then
|
||||
ynh_script_progression --message="Adding $swap_needed Mo to swap..."
|
||||
ynh_add_swap --size=$swap_needed
|
||||
if ! ynh_add_swap --size=$swap_needed; then
|
||||
ynh_print_warn --message="Please add $swap_needed Mo to swap to make Gitlab work properly"
|
||||
fi
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -204,7 +204,9 @@ fi
|
|||
|
||||
if [ $swap_needed -gt 0 ]; then
|
||||
ynh_script_progression --message="Adding $swap_needed Mo to swap..."
|
||||
ynh_add_swap --size=$swap_needed
|
||||
if ! ynh_add_swap --size=$swap_needed; then
|
||||
ynh_print_warn --message="Please add $swap_needed Mo to swap to make Gitlab work properly"
|
||||
fi
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue