From bb06b84752bf15c93a6fa601c7c317c73bc66ee3 Mon Sep 17 00:00:00 2001 From: szaimen Date: Mon, 23 Nov 2020 16:45:45 +0100 Subject: [PATCH] install_production: improve the partition check (#1692) Signed-off-by: szaimen Co-authored-by: Daniel Hansson --- nextcloud_install_production.sh | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh index 22ff041c..4854f2af 100644 --- a/nextcloud_install_production.sh +++ b/nextcloud_install_production.sh @@ -46,20 +46,10 @@ fi is_process_running apt is_process_running dpkg -# Test if snapshot already exists -if does_snapshot_exist "NcVM-installation" -then - msg_box "Unable to continue because a logical volume already exists. - -To run this script again, please remove the volume by running: -'sudo lvremove /dev/ubuntu-vg/NcVM-installation'" - exit 1 -fi - # Create a placeholder volume before modifying anything if [ -z "$PROVISIONING" ] then - if yesno_box_no "Do you want to use LVM snapshots to be able to restore your root partition during upgrades and such? + if ! does_snapshot_exist "NcVM-installation" && yesno_box_no "Do you want to use LVM snapshots to be able to restore your root partition during upgrades and such? Please note: this feature will not be used by this script but by other scripts later on. For now we will only create a placeholder volume that will be used to let some space for snapshot volumes." then