mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 21:29:29 +02:00
test dialogs
This commit is contained in:
parent
56530dcc1a
commit
307c052487
@ -1,7 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
## get basic info
|
||||
source /home/admin/raspiblitz.info
|
||||
source /mnt/hdd/raspiblitz.conf
|
||||
|
||||
whiptail --title "70initLND - WARNING" --yes-button "Retry" --no-button "Show Logs" --yesno "Service ${network}d is not running." 8 50
|
||||
echo "choice($?)"
|
||||
exit 1
|
||||
|
||||
# CHECK 1: BITCOIND is running correctly
|
||||
# - systemd says its running
|
||||
echo "*** Checking ${network} ***"
|
||||
bitcoinRunning=$(systemctl status ${network}d.service 2>/dev/null | grep -c running)
|
||||
if [ ${bitcoinRunning} -eq 0 ]; then
|
||||
bitcoinRunning=$(sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo | grep -c verificationprogress)
|
||||
fi
|
||||
if [ ${bitcoinRunning} -eq 0 ]; then
|
||||
|
||||
fi
|
||||
echo "OK - ${network}d is running"
|
||||
echo ""
|
||||
|
||||
# CHECK 2: LND is running correctly
|
||||
# - systemd says its running
|
||||
@ -14,6 +32,11 @@
|
||||
# sudo systemctl start lnd
|
||||
|
||||
# UI: Ask if user wants NEW wallet or RECOVER a wallet
|
||||
OPTIONS=(NEW "Setup a brand new Lightning Node" \
|
||||
RECOVER "Recover funds from Seed Word List" \
|
||||
RESTORE "Restore LND data from rescue file")
|
||||
CHOICE=$(dialog --backtitle "RaspiBlitz - LND Setup" --clear --title "LND Data & Wallet" --menu "Choose how to setup your Node data:" 11 60 6 "${OPTIONS[@]}" 2>&1 >/dev/tty)
|
||||
echo "choice($CHOICE)"
|
||||
|
||||
source lnd/bin/activate
|
||||
python /home/admin/config.scripts/lnd.initwallet.py new 12345678
|
||||
#source lnd/bin/activate
|
||||
#python /home/admin/config.scripts/lnd.initwallet.py new 12345678
|
@ -1,7 +1,7 @@
|
||||
# lnd configuration
|
||||
|
||||
[Application Options]
|
||||
debuglevel=info
|
||||
debuglevel=debug
|
||||
maxpendingchannels=5
|
||||
alias=raspiblitz
|
||||
color=#68F442
|
||||
|
@ -1,7 +1,7 @@
|
||||
# lnd configuration
|
||||
|
||||
[Application Options]
|
||||
debuglevel=info
|
||||
debuglevel=debug
|
||||
maxpendingchannels=5
|
||||
alias=raspiblitz
|
||||
color=#68F442
|
||||
|
Loading…
x
Reference in New Issue
Block a user