2022-01-25 23:07:21 +03:00
|
|
|
#!/bin/sh
|
2020-10-29 05:18:29 +03:00
|
|
|
|
2022-08-01 19:54:20 +03:00
|
|
|
if [ "$WHOOGLE_TOR_SERVICE" == "0" ]; then
|
|
|
|
echo "Skipping Tor startup..."
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2020-10-29 05:18:29 +03:00
|
|
|
if [ "$(whoami)" != "root" ]; then
|
|
|
|
tor -f /etc/tor/torrc
|
|
|
|
else
|
2021-12-19 21:59:06 +03:00
|
|
|
if (grep alpine /etc/os-release >/dev/null); then
|
|
|
|
rc-service tor start
|
|
|
|
else
|
|
|
|
service tor start
|
|
|
|
fi
|
2020-10-29 05:18:29 +03:00
|
|
|
fi
|