From 68da81452a24c0eb0c9ee25a220489940b297cff Mon Sep 17 00:00:00 2001 From: patriciocl Date: Mon, 21 Jun 2021 20:00:53 -0400 Subject: [PATCH] add storage nfs --- install.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 5e55767..01073c5 100644 --- a/install.sh +++ b/install.sh @@ -119,11 +119,16 @@ esac # Create variables for container disk STORAGE_TYPE=$(pvesm status -storage $STORAGE | awk 'NR>1 {print $2}') -if [ "$STORAGE_TYPE" = "dir" ]; then - DISK_EXT=".qcow2" - DISK_REF="$VMID/" - IMPORT_OPT="-format qcow2" -fi +msg "Extracting disk image..." +case $STORAGE_TYPE in + nfs|dir) + DISK_EXT=".qcow2" + DISK_REF="$VMID/" + IMPORT_OPT="-format qcow2" + ;; + *) echo "next" +;; +esac for i in {0,1}; do disk="DISK$i" eval DISK${i}=vm-${VMID}-disk-${i}${DISK_EXT:-}