From 9ee5838a6aabc75b6505e19b2ba273fba608d8ad Mon Sep 17 00:00:00 2001 From: antitree Date: Fri, 21 Jul 2017 21:52:12 -0400 Subject: [PATCH] fixing random if. Thanks @owenson --- scripts/docker-entrypoint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/docker-entrypoint b/scripts/docker-entrypoint index 7da85d6..e685517 100755 --- a/scripts/docker-entrypoint +++ b/scripts/docker-entrypoint @@ -21,7 +21,7 @@ if [ ! -e /tor-config-done ]; then # Updated to handle docker stack/swarm network overlays TOR_IP=$(ip addr show eth1 | grep "inet" | grep -v '\/32'| awk '{print $2}' | cut -f1 -d'/') NICS=$(ip addr | grep 'state UP' | awk '{print $2}' | cut -f1 -d':') - if + echo "Address ${TOR_IP}" >> /etc/tor/torrc echo -e "ControlPort 0.0.0.0:9051" >> /etc/tor/torrc if [ -z "${TOR_CONTROL_PWD}" ]; then