From ed727cb5495273b65ee2d1cca4afe9069af6a6b3 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Thu, 16 Jan 2020 10:20:04 +0100 Subject: [PATCH] better test blockchain data --- home.admin/10setupBlitz.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home.admin/10setupBlitz.sh b/home.admin/10setupBlitz.sh index b01c743d9..9ef1c7186 100755 --- a/home.admin/10setupBlitz.sh +++ b/home.admin/10setupBlitz.sh @@ -161,7 +161,7 @@ if [ ${isMounted} -eq 1 ]; then blockchainDataExists=$(sudo ls /mnt/hdd/${network}/blocks 2>/dev/null | grep -c '.dat') configExists=$(sudo ls /mnt/hdd/${network}/${network}.conf | grep -c '.conf') - if [ ${blockchainDataExists} -eq 1 ]; then + if [ ${blockchainDataExists} -gt 0 ]; then if [ ${configExists} -eq 1 ]; then /home/admin/XXdebugLogs.sh echo "UNKOWN STATE - there is blockain data config, but blockchain service is not running"