From 0ed98f20599c1e4ff68ba6c82dc48ba0f3036705 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Wed, 8 Jan 2025 15:55:08 +0100 Subject: [PATCH] patch code --- home.admin/config.scripts/blitz.data.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/home.admin/config.scripts/blitz.data.sh b/home.admin/config.scripts/blitz.data.sh index 4bda618fe..d34c77719 100644 --- a/home.admin/config.scripts/blitz.data.sh +++ b/home.admin/config.scripts/blitz.data.sh @@ -371,17 +371,17 @@ if [ "$1" = "status" ]; then dataDevice=$(echo "${listOfDevices}" | head -n1 | awk '{print $1}') dataSizeGB=$(echo "${listOfDevices}" | head -n1 | awk '{print $2}') - # when data drive but no storage - if [ ${#storageDevice} -eq 0 ]; then - echo "# ERROR: data drive but no storage" - scenario="error:system-bigger-than-storage" - # if there is was no spereated data drive - run combine data & storage partiton if [ ${#dataDevice} -eq 0 ]; then combinedDataStorage=1 + # when data drive but no storage + elif [ ${#storageDevice} -eq 0 ]; then + echo "# ERROR: data drive but no storage" + scenario="error:system-bigger-than-storage" + # if there is a data drive but its smaller than dataMinGB & storage drive is big enough - combine data & storage partiton - elif [ ${dataSizeGB} -lt ${dataMinGB} ] && [ ${storageSizeGB} -gt ${storagePrunedMinGB} ]; then + elif [ ${dataSizeGB} -lt ${dataMinGB} ] && [ ${storageSizeGB} -gt ${storagePrunedMinGB} ]; then combinedDataStorage=1 # remove the data device from the list