mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-23 18:02:13 +02:00
wallet detection
This commit is contained in:
@@ -93,6 +93,8 @@ echo ""
|
|||||||
|
|
||||||
###### Instructions on Creating LND Wallet
|
###### 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)
|
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
|
if [ ${walletExists} -eq 0 ]; then
|
||||||
|
|
||||||
# delete old macaroons if exist
|
# delete old macaroons if exist
|
||||||
@@ -100,7 +102,7 @@ if [ ${walletExists} -eq 0 ]; then
|
|||||||
sudo rm /home/admin/.lnd/*.macaroon 2>/dev/null
|
sudo rm /home/admin/.lnd/*.macaroon 2>/dev/null
|
||||||
|
|
||||||
# setup state signals, that no wallet has been created yet
|
# 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.
|
${network} and Lighthing Services are installed.
|
||||||
You now need to setup your Lightning Wallet:
|
You now need to setup your Lightning Wallet:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user