#2639 check if wallet exists from resacue file

This commit is contained in:
rootzoll
2021-12-21 00:38:51 +01:00
parent 48bbbac527
commit 1c57fee848
2 changed files with 8 additions and 3 deletions

View File

@@ -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)"

View File

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