mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-04 03:03:42 +02:00
moved check for raspiblitz.conf earlier
This commit is contained in:
@@ -123,6 +123,19 @@ fi #end - when bitcoin is running
|
|||||||
mountOK=$( sudo cat /etc/fstab | grep -c '/mnt/hdd' )
|
mountOK=$( sudo cat /etc/fstab | grep -c '/mnt/hdd' )
|
||||||
if [ ${mountOK} -eq 1 ]; then
|
if [ ${mountOK} -eq 1 ]; then
|
||||||
|
|
||||||
|
# FAILSAFE: check if raspiblitz.conf is available
|
||||||
|
configExists=$(ls /mnt/hdd/raspiblitz.conf | grep -c '.conf')
|
||||||
|
if [ ${configExists} -eq 0 ]; then
|
||||||
|
echo ""
|
||||||
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
||||||
|
echo "FAIL: /mnt/hdd/raspiblitz.conf should exists at this point, but not found!"
|
||||||
|
echo "Please report to: https://github.com/rootzoll/raspiblitz/issues/293"
|
||||||
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
||||||
|
echo "Press ENTER to EXIT."
|
||||||
|
read key
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# are there any signs of blockchain data and activity
|
# are there any signs of blockchain data and activity
|
||||||
# setup running with admin user, but has no permission to read /mnt/hdd/bitcoin/blocks/, sudo needed
|
# setup running with admin user, but has no permission to read /mnt/hdd/bitcoin/blocks/, sudo needed
|
||||||
blockchainDataExists=$(sudo ls /mnt/hdd/${network}/blocks/blk00000.dat 2>/dev/null | grep -c '.dat')
|
blockchainDataExists=$(sudo ls /mnt/hdd/${network}/blocks/blk00000.dat 2>/dev/null | grep -c '.dat')
|
||||||
|
@@ -1,19 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
# check if raspiblitz.conf is available
|
|
||||||
configExists=$(ls /mnt/hdd/raspiblitz.conf | grep -c '.conf')
|
|
||||||
if [ ${configExists} -eq 0 ]; then
|
|
||||||
echo ""
|
|
||||||
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
||||||
echo "FAIL: /mnt/hdd/raspiblitz.conf should exists at this point, but not found!"
|
|
||||||
echo "Please report to: https://github.com/rootzoll/raspiblitz/issues/293"
|
|
||||||
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
||||||
echo "Press ENTER to EXIT."
|
|
||||||
read key
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
## get basic info
|
## get basic info
|
||||||
source /home/admin/raspiblitz.info
|
source /home/admin/raspiblitz.info
|
||||||
source /mnt/hdd/raspiblitz.conf
|
source /mnt/hdd/raspiblitz.conf
|
||||||
|
Reference in New Issue
Block a user