Browse Source

tor fixes

#146
rootzoll 7 years ago
parent
commit
6e4b48fa73
  1. 2
      home.admin/96addTorService.sh
  2. 1
      home.admin/XXcleanHDD.sh

2
home.admin/96addTorService.sh

@ -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."

1
home.admin/XXcleanHDD.sh

@ -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"

Loading…
Cancel
Save