Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-06-06 17:06:54 -04:00
parent 8c8794fa3d
commit efd9d2557e
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
3 changed files with 12 additions and 9 deletions

View File

@ -20,6 +20,7 @@ FROM alpine:latest
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
RUN apk --no-cache add \
bash \
tor
# default port to used for incoming Tor connections

View File

@ -1,4 +1,6 @@
#!/bin/sh
#!/bin/bash
set -e
set -o pipefail
for relaytype in bridge middle exit; do
sed -i 's/${RELAY_NICKNAME}/'"$RELAY_NICKNAME"'/g' "/etc/tor/torrc.$relaytype"
@ -9,4 +11,4 @@ for relaytype in bridge middle exit; do
sed -i 's/${RELAY_BANDWIDTH_BURST}/'"$RELAY_BANDWIDTH_BURST"'/g' "/etc/tor/torrc.$relaytype"
done
tor -f /etc/tor/torrc.${RELAY_TYPE}
exec tor -f /etc/tor/torrc.${RELAY_TYPE}