blob: 7a6892e48f6c85ada7befe1df7f208b807bd0484 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#! /bin/sh
[ -z "${HSPORT}" ] && HSPORT=80
if ! [ -e /etc/tor/torrc ]; then
echo "SocksPort 0" >> /etc/tor/torrc
echo "DataDirectory /var/lib/tor" >> /etc/tor/torrc
echo "HiddenServiceDir /var/lib/tor/hs" >> /etc/tor/torrc
echo "HiddenServicePort ${HSPORT}" >> /etc/tor/torrc
fi
/usr/bin/tor -f /etc/tor/torrc --user debian-tor
|