diff --git a/scripts/install b/scripts/install index cea7f1d..9366263 100644 --- a/scripts/install +++ b/scripts/install @@ -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 #================================================= diff --git a/scripts/restore b/scripts/restore index 4a77da1..7adf86f 100644 --- a/scripts/restore +++ b/scripts/restore @@ -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 #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 1b99484..8c80d56 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 #=================================================