reduce verbosity of entrypoint

This commit is contained in:
Fabian Peter Hammerle
2020-03-21 21:03:09 +01:00
parent 60bad462e4
commit d2d2f4aaf7
+3 -3
View File
@@ -1,13 +1,13 @@
#!/bin/sh
set -ex
set -e
# default: 120 sec
# https://github.com/torproject/tor/blob/tor-0.4.1.7/src/core/or/connection_edge.c#L1099
if [ -z "$SOCKS_TIMEOUT_SECONDS" ]; then
sed -e '/{socks_timeout_seconds}/d' /torrc.template | tee /tmp/torrc
sed -e '/{socks_timeout_seconds}/d' /torrc.template > /tmp/torrc
else
sed -e "s/{socks_timeout_seconds}/$SOCKS_TIMEOUT_SECONDS/" /torrc.template | tee /tmp/torrc
sed -e "s/{socks_timeout_seconds}/$SOCKS_TIMEOUT_SECONDS/" /torrc.template > /tmp/torrc
fi
exec "$@"