From 9107d8a5969b6087f35f042a25d119652e6a33a9 Mon Sep 17 00:00:00 2001 From: szaimen Date: Sat, 3 Oct 2020 20:15:51 +0200 Subject: [PATCH] make it possible to skip the whole lvm section (#1518) --- nextcloud_install_production.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh index 0b73c850..7df36c89 100644 --- a/nextcloud_install_production.sh +++ b/nextcloud_install_production.sh @@ -119,6 +119,8 @@ fi # Fix LVM on BASE image if grep -q "LVM" /etc/fstab then + if yesno_box_yes "Do you want to make all free space available to your root partition?" + then # Resize LVM (live installer is &%ยค%/! # VM print_text_in_color "$ICyan" "Extending LVM, this may take a long time..." @@ -136,16 +138,14 @@ then then if ! lvextend -L +1M /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1 then - if yesno_box_yes "Do you want to make all free space available to your root partition?" - then - resize2fs /dev/ubuntu-vg/ubuntu-lv - fi + resize2fs /dev/ubuntu-vg/ubuntu-lv break fi fi fi fi done + fi fi # Check if it's a clean server