mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 06:48:00 +01:00
tor fixes
This commit is contained in:
parent
563972f0f2
commit
6e4b48fa73
2 changed files with 2 additions and 1 deletions
|
@ -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."
|
||||
|
|
|
@ -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…
Add table
Reference in a new issue