mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
#293 failsafe to check if raspiblitz.conf was created
This commit is contained in:
parent
140c82ad01
commit
b0210b7f1d
1 changed files with 15 additions and 1 deletions
|
@ -1,8 +1,22 @@
|
|||
#!/bin/bash
|
||||
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
|
||||
source /home/admin/raspiblitz.info 2>/dev/null
|
||||
source /home/admin/raspiblitz.info
|
||||
source /mnt/hdd/raspiblitz.conf
|
||||
|
||||
# verify that bitcoin is running
|
||||
echo "*** Checking ${network} ***"
|
||||
|
|
Loading…
Add table
Reference in a new issue