From 36575c223e47de5c08982023fbb2ede9e2d4ce13 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Wed, 7 Aug 2019 01:49:17 +0200 Subject: [PATCH] #592 fixing Tor during setup --- home.admin/config.scripts/internet.tor.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home.admin/config.scripts/internet.tor.sh b/home.admin/config.scripts/internet.tor.sh index 1c71c31..a05a72a 100755 --- a/home.admin/config.scripts/internet.tor.sh +++ b/home.admin/config.scripts/internet.tor.sh @@ -106,6 +106,7 @@ activateBitcoinOverTOR() fi sudo chmod 444 /home/bitcoin/.${network}/${network}.conf + # copy new bitcoin.conf to admin user for cli access sudo cp /home/bitcoin/.${network}/${network}.conf /home/admin/.${network}/${network}.conf sudo chown admin:admin /home/admin/.${network}/${network}.conf @@ -171,7 +172,8 @@ if [ ${#network} -eq 0 ]; then fi # add default value to raspi config if needed -if [ ${#runBehindTor} -eq 0 ]; then +checkTorEntry=$(sudo cat /mnt/hdd/raspiblitz.conf | grep -c "runBehindTor") +if [ ${checkTorEntry} -eq 0 ]; then echo "runBehindTor=off" >> /mnt/hdd/raspiblitz.conf fi