use full error

This commit is contained in:
Christian Rotzoll 2019-04-25 00:02:19 +02:00
parent b2886fdd78
commit ac943c3ebc

View file

@ -127,10 +127,10 @@ if [ ${lndRunning} -eq 1 ]; then
lndErrorShort=''
#rm /mnt/hdd/temp/.lnd.error 2>/dev/null
if [ ${#lndError} -gt 0 ]; then
if [ ${#lndErrorFull} -gt 0 ]; then
# scan error for walletLocked as common error
locked=$(echo ${lndError} | grep -c 'Wallet is encrypted')
locked=$(echo ${lndErrorFull} | grep -c 'Wallet is encrypted')
if [ ${locked} -gt 0 ]; then
echo "walletLocked=1"
else