whoogle-search/misc/tor/start-tor.sh

17 lines
298 B
Bash
Raw Normal View History

#!/bin/sh
if [ "$WHOOGLE_TOR_SERVICE" == "0" ]; then
echo "Skipping Tor startup..."
exit 0
fi
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
fi