merged and extended pr33

This commit is contained in:
rootzoll
2018-08-08 17:36:04 +02:00
parent 7bf2aeebf7
commit e27395dccc
7 changed files with 208 additions and 72 deletions

View File

@@ -87,7 +87,7 @@ if [ "$USER" = "pi" ]; then
# RaspiBlitz is full Setup
chain=$(sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo | jq -r '.chain')
locked=$(sudo tail -n 1 /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log | grep -c unlock)
locked=$(sudo tail -n 1 /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log 2>/dev/null | grep -c unlock)
if [ ${locked} -gt 0 ]; then
# special case: LND wallet is locked ---> show unlock info