switch debug.log in

This commit is contained in:
rootzoll 2021-08-26 22:05:35 +02:00
parent a1d80ca673
commit bf98b314ee
3 changed files with 13 additions and 3 deletions

View File

@ -141,6 +141,15 @@ sudo cp /home/admin/assets/tmux.conf.local /mnt/hdd/.tmux.conf.local >> ${logFil
sudo chown admin:admin /mnt/hdd/.tmux.conf.local >> ${logFile} 2>&1 sudo chown admin:admin /mnt/hdd/.tmux.conf.local >> ${logFile} 2>&1
sudo ln -s -f /mnt/hdd/.tmux.conf.local /home/admin/.tmux.conf.local >> ${logFile} 2>&1 sudo ln -s -f /mnt/hdd/.tmux.conf.local /home/admin/.tmux.conf.local >> ${logFile} 2>&1
# make sure that ./bitcoin/debug.log is switched on
debugFile=$(cat /mnt/hdd/${network}/${network}.conf | grep "debuglogfile=")
echo "debugFile(${debugFile})" >> ${logFile}
if [ "${debugFile}" == "0" ]; then
echo "# debug.log: Switching on" >> ${logFile}
echo "debuglogfile=/mnt/hdd/bitcoin/debug.log" >> /mnt/hdd/${network}/${network}.conf
else
echo "# debug.log: Is on" >> ${logFile}
fi
# backup LND dir (especially for macaroons and tlscerts) # backup LND dir (especially for macaroons and tlscerts)
# https://github.com/rootzoll/raspiblitz/issues/324 # https://github.com/rootzoll/raspiblitz/issues/324

View File

@ -9,6 +9,8 @@ daemon=1
txindex=0 txindex=0
disablewallet=1 disablewallet=1
peerbloomfilters=1 peerbloomfilters=1
datadir=/mnt/hdd/bitcoin
debuglogfile=/mnt/hdd/bitcoin/debug.log
# Connection settings # Connection settings
rpcuser=raspibolt rpcuser=raspibolt
@ -28,8 +30,6 @@ maxmempool=300
maxconnections=40 maxconnections=40
maxuploadtarget=5000 maxuploadtarget=5000
datadir=/mnt/hdd/bitcoin
# tor by default # tor by default
onlynet=onion onlynet=onion
proxy=127.0.0.1:9050 proxy=127.0.0.1:9050

View File

@ -8,6 +8,8 @@ server=1
daemon=1 daemon=1
txindex=0 txindex=0
disablewallet=1 disablewallet=1
datadir=/mnt/hdd/litecoin
debuglogfile=/mnt/hdd/litecoin/debug.log
# Connection settings # Connection settings
rpcuser=raspibolt rpcuser=raspibolt
@ -26,7 +28,6 @@ maxuploadtarget=5000
discardfee=0.00000001 discardfee=0.00000001
mintxfee=0.00000001 mintxfee=0.00000001
minrelaytxfee=0.00000001 minrelaytxfee=0.00000001
datadir=/mnt/hdd/litecoin
# tor by default # tor by default
onlynet=onion onlynet=onion