Browse Source

wallet detection

#146
rootzoll 6 years ago
parent
commit
16c5020b75
  1. 4
      home.admin/70initLND.sh

4
home.admin/70initLND.sh

@ -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…
Cancel
Save