mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
fixed #190
This commit is contained in:
parent
cfef77e600
commit
d19c598e56
2 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
echo "Starting the main menu - please wait ..."
|
||||
|
||||
# check data from _bootstrap.sh that was running on device setup
|
||||
infoFile='/home/admin/raspiblitz.info'
|
||||
|
@ -7,7 +8,6 @@ if [ ${bootstrapInfoExists} -eq 1 ]; then
|
|||
|
||||
# load the data from the info file
|
||||
source ${infoFile}
|
||||
echo "Found raspiblitz.info from bootstrap - processing ..."
|
||||
|
||||
# if pre-sync is running - stop it
|
||||
if [ "${state}" = "presync" ]; then
|
||||
|
|
|
@ -83,12 +83,12 @@ if [ "${chain}" != "${choice}" ]; then
|
|||
fi
|
||||
read key
|
||||
done
|
||||
echo "Check for Macaroon .."
|
||||
sleep 6
|
||||
echo "Check for Macaroon .. (10sec)"
|
||||
sleep 10
|
||||
macaroonExists=$(sudo ls /home/bitcoin/.lnd/data/chain/${network}/${choice}net/admin.macaroon | grep -c 'admin.macaroon')
|
||||
if [ ${macaroonExists} -eq 0 ]; then
|
||||
echo "*** PLEASE UNLOCK your wallet with PASSWORD C to create macaroon"
|
||||
lncli unlock
|
||||
lncli unlock 2>/dev/null
|
||||
sleep 6
|
||||
fi
|
||||
macaroonExists=$(sudo ls /home/bitcoin/.lnd/data/chain/${network}/${choice}net/admin.macaroon | grep -c 'admin.macaroon')
|
||||
|
|
Loading…
Add table
Reference in a new issue