diff --git a/home.admin/_provision_.sh b/home.admin/_provision_.sh index 9044d943..bfc5d53c 100755 --- a/home.admin/_provision_.sh +++ b/home.admin/_provision_.sh @@ -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 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) # https://github.com/rootzoll/raspiblitz/issues/324 diff --git a/home.admin/assets/bitcoin.conf b/home.admin/assets/bitcoin.conf index b9a32c9c..6493480e 100755 --- a/home.admin/assets/bitcoin.conf +++ b/home.admin/assets/bitcoin.conf @@ -9,6 +9,8 @@ daemon=1 txindex=0 disablewallet=1 peerbloomfilters=1 +datadir=/mnt/hdd/bitcoin +debuglogfile=/mnt/hdd/bitcoin/debug.log # Connection settings rpcuser=raspibolt @@ -28,8 +30,6 @@ maxmempool=300 maxconnections=40 maxuploadtarget=5000 -datadir=/mnt/hdd/bitcoin - # tor by default onlynet=onion proxy=127.0.0.1:9050 diff --git a/home.admin/assets/litecoin.conf b/home.admin/assets/litecoin.conf index 83e8ce6a..875fc050 100755 --- a/home.admin/assets/litecoin.conf +++ b/home.admin/assets/litecoin.conf @@ -8,6 +8,8 @@ server=1 daemon=1 txindex=0 disablewallet=1 +datadir=/mnt/hdd/litecoin +debuglogfile=/mnt/hdd/litecoin/debug.log # Connection settings rpcuser=raspibolt @@ -26,7 +28,6 @@ maxuploadtarget=5000 discardfee=0.00000001 mintxfee=0.00000001 minrelaytxfee=0.00000001 -datadir=/mnt/hdd/litecoin # tor by default onlynet=onion