diff options
Diffstat (limited to 'packaging/docker/onion/start.sh')
-rw-r--r-- | packaging/docker/onion/start.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packaging/docker/onion/start.sh b/packaging/docker/onion/start.sh new file mode 100644 index 0000000..6d14ae4 --- /dev/null +++ b/packaging/docker/onion/start.sh @@ -0,0 +1,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 |