better test for if locked

This commit is contained in:
rootzoll 2018-12-20 20:30:25 +01:00
parent b2124b9b3c
commit b0f08c8460

View File

@ -113,7 +113,7 @@ waitUntilChainNetworkIsReady()
boxwidth=40
dialog --backtitle "RaspiBlitz ${localip} - Welcome" --infobox "$l1$l2$l3" 5 ${boxwidth}
else
locked=$(lncli --chain=${network} --network=${chain}net getinfo 2>&1 | grep -c unlock)
locked=$(sudo -u bitcoin /usr/local/bin/lncli --chain=${network} --network=${chain}net getinfo 2>&1 | grep -c unlock)
if [ ${locked} -gt 0 ]; then
./AAunlockLND.sh
echo "please wait ... update to next screen can be slow"