summaryrefslogtreecommitdiff
path: root/packaging/docker/onion/start.sh
blob: 6d14ae4dccde470a5ded45e5f748fa661fa2bff6 (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