blob: afc70f7e8954064b65cb5aee330347285c67aee5 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#! /bin/sh
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 80" >> /etc/tor/torrc
fi
/usr/bin/tor -f /etc/tor/torrc --user debian-tor
|