mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-19 20:24:39 +02:00
#293 failsafe to check if raspiblitz.conf was created
This commit is contained in:
@@ -1,8 +1,22 @@
|
|||||||
#!/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 2>/dev/null
|
source /home/admin/raspiblitz.info
|
||||||
|
source /mnt/hdd/raspiblitz.conf
|
||||||
|
|
||||||
# verify that bitcoin is running
|
# verify that bitcoin is running
|
||||||
echo "*** Checking ${network} ***"
|
echo "*** Checking ${network} ***"
|
||||||
|
Reference in New Issue
Block a user