mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-18 09:57:17 +01:00
fix error debug logs
This commit is contained in:
@@ -48,7 +48,6 @@ while :
|
|||||||
|
|
||||||
# check hostname and get backup if from old config
|
# check hostname and get backup if from old config
|
||||||
if [ ${#hostname} -eq 0 ]; then
|
if [ ${#hostname} -eq 0 ]; then
|
||||||
echo "backup info: hostname"
|
|
||||||
hostname=`sudo cat /home/admin/.hostname`
|
hostname=`sudo cat /home/admin/.hostname`
|
||||||
if [ ${#hostname} -eq 0 ]; then
|
if [ ${#hostname} -eq 0 ]; then
|
||||||
hostname="raspiblitz"
|
hostname="raspiblitz"
|
||||||
@@ -57,18 +56,20 @@ while :
|
|||||||
|
|
||||||
# check network and get backup if from old config
|
# check network and get backup if from old config
|
||||||
if [ ${#network} -eq 0 ]; then
|
if [ ${#network} -eq 0 ]; then
|
||||||
echo "backup info: network"
|
|
||||||
network="bitcoin"
|
network="bitcoin"
|
||||||
litecoinActive=$(sudo ls /mnt/hdd/litecoin/litecoin.conf | grep -c 'litecoin.conf')
|
litecoinActive=$(sudo ls /mnt/hdd/litecoin/litecoin.conf 2>/dev/null | grep -c 'litecoin.conf')
|
||||||
if [ ${litecoinActive} -eq 1 ]; then
|
if [ ${litecoinActive} -eq 1 ]; then
|
||||||
network="litecoin"
|
network="litecoin"
|
||||||
|
else
|
||||||
|
network=`sudo cat /home/admin/.network 2>/dev/null`
|
||||||
|
fi
|
||||||
|
if [ ${#network} -eq 0 ]; then
|
||||||
|
network="bitcoin"
|
||||||
fi
|
fi
|
||||||
network=`sudo cat /home/admin/.network`
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check chain and get backup if from system
|
# check chain and get backup if from system
|
||||||
if [ ${#chain} -eq 0 ]; then
|
if [ ${#chain} -eq 0 ]; then
|
||||||
echo "backup info: chain"
|
|
||||||
chain="test"
|
chain="test"
|
||||||
isMainChain=$(sudo cat /mnt/hdd/${network}/${network}.conf 2>/dev/null | grep "#testnet=1" -c)
|
isMainChain=$(sudo cat /mnt/hdd/${network}/${network}.conf 2>/dev/null | grep "#testnet=1" -c)
|
||||||
if [ ${isMainChain} -gt 0 ];then
|
if [ ${isMainChain} -gt 0 ];then
|
||||||
|
|||||||
@@ -63,13 +63,17 @@ fi
|
|||||||
|
|
||||||
# check network and get backup if from old config
|
# check network and get backup if from old config
|
||||||
if [ ${#network} -eq 0 ]; then
|
if [ ${#network} -eq 0 ]; then
|
||||||
echo "backup info: network"
|
echo "backup info: network"
|
||||||
network="bitcoin"
|
network="bitcoin"
|
||||||
litecoinActive=$(sudo ls /mnt/hdd/litecoin/litecoin.conf | grep -c 'litecoin.conf')
|
litecoinActive=$(sudo ls /mnt/hdd/litecoin/litecoin.conf 2>/dev/null | grep -c 'litecoin.conf')
|
||||||
if [ ${litecoinActive} -eq 1 ]; then
|
if [ ${litecoinActive} -eq 1 ]; then
|
||||||
network="litecoin"
|
network="litecoin"
|
||||||
fi
|
else
|
||||||
network=`sudo cat /home/admin/.network`
|
network=`sudo cat /home/admin/.network 2>/dev/null`
|
||||||
|
fi
|
||||||
|
if [ ${#network} -eq 0 ]; then
|
||||||
|
network="bitcoin"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check chain and get backup if from system
|
# check chain and get backup if from system
|
||||||
|
|||||||
Reference in New Issue
Block a user