mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-19 12:10:33 +02:00
#2639 check if wallet exists from resacue file
This commit is contained in:
@@ -242,8 +242,14 @@ if [ "${lightning}" == "lnd" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# WALLET --> FROM RESCUEFILE
|
||||
if [ $(sudo -u bitcoin ls /mnt/hdd/lnd/data/chain/bitcoin/mainnet/wallet.db 2>/dev/null | grep -c wallet.db) -gt 0 ]; then
|
||||
|
||||
# OK no further action needed
|
||||
echo "WALLET --> FROM RESCUEFILE " >> ${logFile}
|
||||
|
||||
# WALLET --> SEED + SCB
|
||||
if [ "${seedWords}" != "" ] && [ "${staticchannelbackup}" != "" ]; then
|
||||
elif [ "${seedWords}" != "" ] && [ "${staticchannelbackup}" != "" ]; then
|
||||
|
||||
echo "WALLET --> SEED + SCB " >> ${logFile}
|
||||
/home/admin/_cache.sh set message "LND Wallet (SEED & SCB)"
|
||||
|
@@ -225,11 +225,10 @@ if [ "$2" = "peer-kickstart" ]; then
|
||||
fi
|
||||
# if auto then determine whats running
|
||||
if [ "${addressFormat}" == "auto" ]; then
|
||||
source <()
|
||||
if [ "$(cat /mnt/hdd/raspiblitz.conf | grep -c "^runBehindTor=on")" != "0" ]; then
|
||||
addressFormat="tor"
|
||||
else
|
||||
source <(sudo ./config.scripts/internet.sh status global)
|
||||
source <(sudo /home/admin/config.scripts/internet.sh status global)
|
||||
if [ "${ipv6}" == "off" ]; then
|
||||
addressFormat="ipv4"
|
||||
else
|
||||
|
Reference in New Issue
Block a user