mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
cleanup
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
8c8794fa3d
commit
efd9d2557e
|
@ -20,6 +20,7 @@ FROM alpine:latest
|
||||||
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
||||||
|
|
||||||
RUN apk --no-cache add \
|
RUN apk --no-cache add \
|
||||||
|
bash \
|
||||||
tor
|
tor
|
||||||
|
|
||||||
# default port to used for incoming Tor connections
|
# default port to used for incoming Tor connections
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
for relaytype in bridge middle exit; do
|
for relaytype in bridge middle exit; do
|
||||||
sed -i 's/${RELAY_NICKNAME}/'"$RELAY_NICKNAME"'/g' "/etc/tor/torrc.$relaytype"
|
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"
|
sed -i 's/${RELAY_BANDWIDTH_BURST}/'"$RELAY_BANDWIDTH_BURST"'/g' "/etc/tor/torrc.$relaytype"
|
||||||
done
|
done
|
||||||
|
|
||||||
tor -f /etc/tor/torrc.${RELAY_TYPE}
|
exec tor -f /etc/tor/torrc.${RELAY_TYPE}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user