mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-03 18:09:03 +02:00
fix blockhain size
This commit is contained in:
@@ -147,16 +147,14 @@ if [ "$1" = "layout" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# check blochain data
|
# 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)}')
|
||||||
storageBlockchainGB=$(du -s ${mountPath}/app-storage/bitcoin/blocks 2>/dev/null| awk '{printf "%.0f", $1/(1024*1024)}')
|
if [ "${storageBlockchainGB}" = "" ]; then
|
||||||
if [ "${storageBlockchainGB}" = "" ]; then
|
|
||||||
# check old location
|
# check old location
|
||||||
storageBlockchainGB=$(du -s ${mountPath}/bitcoin/blocks 2>/dev/null| awk '{printf "%.0f", $1/(1024*1024)}')
|
storageBlockchainGB=$(du -s ${mountPath}/bitcoin/blocks 2>/dev/null| awk '{printf "%.0f", $1/(1024*1024)}')
|
||||||
fi
|
fi
|
||||||
if [ "${storageBlockchainGB}" = "" ]; then
|
if [ "${storageBlockchainGB}" = "" ]; then
|
||||||
# if nothing found - set to numeric 0
|
# if nothing found - set to numeric 0
|
||||||
storageBlockchainGB=0
|
storageBlockchainGB=0
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check DATA DRIVE
|
# Check DATA DRIVE
|
||||||
|
Reference in New Issue
Block a user