wallet detection

This commit is contained in:
rootzoll 2018-08-09 11:54:15 +02:00
parent 41d617daf6
commit 16c5020b75

View File

@ -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: