mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 14:51:03 +01:00
debug
This commit is contained in:
parent
b8d90e59db
commit
73a616a3b0
1 changed files with 3 additions and 3 deletions
|
@ -35,14 +35,14 @@ echo "bitcoinActive=${bitcoinRunning}"
|
|||
if [ ${bitcoinRunning} -eq 1 ]; then
|
||||
|
||||
# get blockchain info
|
||||
blockchaininfo=$(sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo 2>/mnt/hdd/temp/.bitcoind.error)
|
||||
|
||||
sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo 1>/mnt/hdd/temp/.bitcoind.out 2>/mnt/hdd/temp/.bitcoind.error
|
||||
# check if error on request
|
||||
blockchaininfo=$(cat /mnt/hdd/temp/.bitcoind.out 2>/dev/null)
|
||||
bitcoinError=$(cat /mnt/hdd/temp/.bitcoind.error 2>/dev/null)
|
||||
#rm /mnt/hdd/temp/.bitcoind.error 2>/dev/null
|
||||
if [ ${#bitcoinError} -gt 0 ]; then
|
||||
echo "bitcoinErrorFull='${bitcoinError}'"
|
||||
echo "bitcoinErrorShort='${clienterror/error*:/}'"
|
||||
echo "bitcoinErrorShort='${bitcoinError/error*:/}'"
|
||||
else
|
||||
|
||||
##############################
|
||||
|
|
Loading…
Add table
Reference in a new issue