mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
only provision Tor when not running
This commit is contained in:
parent
47a1407f11
commit
aaefb8df10
1 changed files with 2 additions and 1 deletions
|
@ -233,7 +233,8 @@ else
|
|||
fi
|
||||
|
||||
# TOR
|
||||
if [ "${runBehindTor}" = "on" ]; then
|
||||
source <(/home/admin/config.scripts/internet.tor.sh status)
|
||||
if [ "${runBehindTor}" == "on" ] && [ "${torRunning}" == "0" ]; then
|
||||
echo "Provisioning TOR - run config script" >> ${logFile}
|
||||
sudo sed -i "s/^message=.*/message='Setup Tor (takes time)'/g" ${infoFile}
|
||||
sudo /home/admin/config.scripts/internet.tor.sh on >> ${logFile} 2>&1
|
||||
|
|
Loading…
Add table
Reference in a new issue