From 38449a4bb40fd6cdf97e298d7464ad6aa344c57f Mon Sep 17 00:00:00 2001 From: rosbeef andino Date: Tue, 7 Feb 2023 16:06:29 +0000 Subject: [PATCH] Update scripts/install Co-authored-by: Alexandre Aubin --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 04851d5..0ac4163 100644 --- a/scripts/install +++ b/scripts/install @@ -136,7 +136,7 @@ swap_needed=0 if [ $total_memory -lt $memory_needed ]; then # Need a minimum of memory - if [ "$(systemd-detect-virt)" == "none" ]; then + if [ "$(systemd-detect-virt)" != "lxc" ]; then swap_needed=$(($memory_needed - $total_memory)) ynh_script_progression --message="Adding $swap_needed Mo to swap..." ynh_add_swap --size=$swap_needed