tor fixes

This commit is contained in:
rootzoll 2018-08-20 22:52:01 +02:00
parent 563972f0f2
commit 6e4b48fa73
2 changed files with 2 additions and 1 deletions

View file

@ -14,7 +14,7 @@ torrc="/etc/tor/torrc"
clear
echo ""
echo "*** Check if TOR service is functional ***"
torRunning=$(curl --socks5-hostname 127.0.0.1:9050 https://check.torproject.org | grep "Congratulations. This browser is configured to use Tor." -c)
torRunning=$(curl --connect-timeout 10 --socks5-hostname 127.0.0.1:9050 https://check.torproject.org | grep "Congratulations. This browser is configured to use Tor." -c)
if [ ${torRunning} -gt 0 ]; then
clear
echo "You are all good - TOR is already running."

View file

@ -21,6 +21,7 @@ sudo rm -f /mnt/hdd/${network}/testnet3/*.dat
sudo rm -f /mnt/hdd/${network}/testnet3/*.log
sudo rm -f /mnt/hdd/${network}/testnet3/.lock
sudo rm -f -r /mnt/hdd/${network}/database
sudo rm -f -r /mnt/hdd/tor
sudo chown admin:admin -R /mnt/hdd/${network}
echo "1" > /home/admin/.setup
echo "OK - the HDD is now clean"