mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-28 20:42:41 +02:00
Eroor Full & Short
This commit is contained in:
@@ -225,13 +225,12 @@ To run a BACKUP of funds & channels first is recommended.
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
|
||||||
echo "${network} error: ${clienterror}"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# let 80scanLND script to the info to use
|
# let 80scanLND script to the info to use
|
||||||
/home/admin/80scanLND.sh
|
/home/admin/80scanLND.sh
|
||||||
if [ $? -gt 0 ]; then
|
if [ $? -gt 0 ]; then
|
||||||
|
echo "${network} error: ${clienterror}"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@@ -29,9 +29,9 @@ if [ ${bitcoinActive} -eq 0 ]; then
|
|||||||
echo "*****************************************"
|
echo "*****************************************"
|
||||||
echo "If you just started some config/setup, this might be OK."
|
echo "If you just started some config/setup, this might be OK."
|
||||||
echo
|
echo
|
||||||
if [ ${#bitcoinError} -gt 0 ]; then
|
if [ ${#bitcoinErrorFull} -gt 0 ]; then
|
||||||
echo "More Error Detail:"
|
echo "More Error Detail:"
|
||||||
echo ${bitcoinError}
|
echo ${bitcoinErrorFull}
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
echo "-> To start ${network}d run: sudo systemctl start ${network}d"
|
echo "-> To start ${network}d run: sudo systemctl start ${network}d"
|
||||||
@@ -41,9 +41,10 @@ if [ ${bitcoinActive} -eq 0 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
infoStr=" The ${network}d service is starting.\n Login for more details:"
|
height=6
|
||||||
|
infoStr=" The ${network}d service is starting.\n${bitcoinErrorShort}\n Login for more details:"
|
||||||
if [ "$USER" == "admin" ]; then
|
if [ "$USER" == "admin" ]; then
|
||||||
infoStr=" The ${network}d service is starting.\n Please wait up to 5min ..."
|
infoStr=" The ${network}d service is starting.\n${bitcoinErrorShort}\nPlease wait up to 5min ..."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -65,9 +66,9 @@ elif [ ${lndActive} -eq 0 ]; then
|
|||||||
echo "*********************************"
|
echo "*********************************"
|
||||||
echo "If you just started some config/setup, this might be OK."
|
echo "If you just started some config/setup, this might be OK."
|
||||||
echo
|
echo
|
||||||
if [ ${#lndError} -gt 0 ]; then
|
if [ ${#lndErrorFull} -gt 0 ]; then
|
||||||
echo "More Error Detail:"
|
echo "More Error Detail:"
|
||||||
echo ${lndError}
|
echo ${lndErrorFull}
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
echo "-> To start LND run: sudo systemctl start lnd"
|
echo "-> To start LND run: sudo systemctl start lnd"
|
||||||
|
@@ -38,10 +38,11 @@ if [ ${bitcoinRunning} -eq 1 ]; then
|
|||||||
blockchaininfo=$(sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo 2>/mnt/hdd/temp/.bitcoind.error)
|
blockchaininfo=$(sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo 2>/mnt/hdd/temp/.bitcoind.error)
|
||||||
|
|
||||||
# check if error on request
|
# check if error on request
|
||||||
bitcoinError=$(cat /mnt/hdd/temp/.bitcoind.error 2>/dev/null | tr "'" '"' | tr '"' '\"' )
|
bitcoinError=$(cat /mnt/hdd/temp/.bitcoind.error 2>/dev/null)
|
||||||
rm /mnt/hdd/temp/.bitcoind.error 2>/dev/null
|
rm /mnt/hdd/temp/.bitcoind.error 2>/dev/null
|
||||||
if [ ${#bitcoinError} -gt 0 ]; then
|
if [ ${#bitcoinError} -gt 0 ]; then
|
||||||
echo "bitcoinError='${bitcoinError}'"
|
echo "bitcoinErrorFull='${bitcoinError}'"
|
||||||
|
echo "bitcoinErrorShort='${clienterror/error*:/}'"
|
||||||
else
|
else
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
@@ -77,10 +78,11 @@ if [ ${lndRunning} -eq 1 ]; then
|
|||||||
lndinfo=$(sudo -u bitcoin lncli getinfo 2>/mnt/hdd/temp/.lnd.error)
|
lndinfo=$(sudo -u bitcoin lncli getinfo 2>/mnt/hdd/temp/.lnd.error)
|
||||||
|
|
||||||
# check if error on request
|
# check if error on request
|
||||||
lndError=$(cat /mnt/hdd/temp/.lnd.error 2>/dev/null | tr "'" '"' | tr '"' '\"' )
|
lndErrorFull=$(cat /mnt/hdd/temp/.lnd.error 2>/dev/null)
|
||||||
rm /mnt/hdd/temp/.lnd.error 2>/dev/null
|
rm /mnt/hdd/temp/.lnd.error 2>/dev/null
|
||||||
if [ ${#lndError} -gt 0 ]; then
|
if [ ${#lndError} -gt 0 ]; then
|
||||||
echo "lndError='${lndError}'"
|
echo "lndErrorFull='${lndErrorFull}'"
|
||||||
|
echo "lndErrorShort=''"
|
||||||
else
|
else
|
||||||
|
|
||||||
# synced to chain
|
# synced to chain
|
||||||
|
Reference in New Issue
Block a user