mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-20 10:12:06 +01:00
wallet detection
This commit is contained in:
parent
41d617daf6
commit
16c5020b75
@ -93,6 +93,8 @@ echo ""
|
||||
|
||||
###### Instructions on Creating LND Wallet
|
||||
walletExists=$(sudo ls /mnt/hdd/lnd/data/chain/${network}/${chain}net/wallet.db 2>/dev/null | grep wallet.db -c)
|
||||
echo "walletExists(${walletExists})"
|
||||
sleep 6
|
||||
if [ ${walletExists} -eq 0 ]; then
|
||||
|
||||
# delete old macaroons if exist
|
||||
@ -100,7 +102,7 @@ if [ ${walletExists} -eq 0 ]; then
|
||||
sudo rm /home/admin/.lnd/*.macaroon 2>/dev/null
|
||||
|
||||
# setup state signals, that no wallet has been created yet
|
||||
dialog --backtitle "RaspiBlitz - LND Lightning Wallet" --msgbox "
|
||||
dialog --backtitle "RaspiBlitz - LND Lightning Wallet (${network}/${chain})" --msgbox "
|
||||
${network} and Lighthing Services are installed.
|
||||
You now need to setup your Lightning Wallet:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user