summaryrefslogtreecommitdiff
path: root/packaging/docker/onion/start.sh
blob: e4f1bf666760bfb7786364b6ed3cbb055ca04317 (plain)
1
2
3
4
5
6
7
8
9
#! /bin/sh

if ! [ -e /etc/tor/torrc ]; then
    echo "SocksPort 0" >> /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