From d9715dd81bc5f00d2f8bbe48c2e2d309842f5e9a Mon Sep 17 00:00:00 2001 From: rootzoll Date: Sun, 5 Jan 2025 17:42:43 +0100 Subject: [PATCH] fix blockhain size --- home.admin/config.scripts/blitz.data.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/home.admin/config.scripts/blitz.data.sh b/home.admin/config.scripts/blitz.data.sh index 622b97209..38af6210a 100644 --- a/home.admin/config.scripts/blitz.data.sh +++ b/home.admin/config.scripts/blitz.data.sh @@ -147,16 +147,14 @@ if [ "$1" = "layout" ]; then fi # check blochain data - if [ -d "${mountPath}/blocks" ]; then - storageBlockchainGB=$(du -s ${mountPath}/app-storage/bitcoin/blocks 2>/dev/null| awk '{printf "%.0f", $1/(1024*1024)}') - if [ "${storageBlockchainGB}" = "" ]; then + storageBlockchainGB=$(du -s ${mountPath}/app-storage/bitcoin/blocks 2>/dev/null| awk '{printf "%.0f", $1/(1024*1024)}') + if [ "${storageBlockchainGB}" = "" ]; then # check old location storageBlockchainGB=$(du -s ${mountPath}/bitcoin/blocks 2>/dev/null| awk '{printf "%.0f", $1/(1024*1024)}') - fi - if [ "${storageBlockchainGB}" = "" ]; then - # if nothing found - set to numeric 0 - storageBlockchainGB=0 - fi + fi + if [ "${storageBlockchainGB}" = "" ]; then + # if nothing found - set to numeric 0 + storageBlockchainGB=0 fi # Check DATA DRIVE