From d2d2f4aaf71ba7881667a2a8604fcc8fac6f6aff Mon Sep 17 00:00:00 2001 From: Fabian Peter Hammerle Date: Sat, 21 Mar 2020 21:03:09 +0100 Subject: [PATCH] reduce verbosity of entrypoint --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index bc9d4c4..8316b69 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 "$@"