From 8783c8301fe2909f3f3ce419c78baa48d1c332fb Mon Sep 17 00:00:00 2001 From: wagerrck <104495875+wagerrck@users.noreply.github.com> Date: Sat, 23 Apr 2022 10:09:50 +0100 Subject: [PATCH] feat: add tor entrypoint script for use in dashmate (#4182) * feat: add entrypoint for tor features in dashmate * fix: use spaces consistently for indendation * fix: output blank line after info * fix: ensure script is executable * fix: keep linter happy --- docker/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index a201ae7e18bc6..bf9df15fb091c 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -4,7 +4,7 @@ export LC_ALL=C set -e # Get Tor service IP if running -if [[ "$1" == "dashd" ]]; then +if [[ "$1" == "wagerrd" ]]; then # Because dashd only accept torcontrol= host as an ip only, we resolve it here and add to config if [[ "$TOR_CONTROL_HOST" ]] && [[ "$TOR_CONTROL_PORT" ]] && [[ "$TOR_PROXY_PORT" ]]; then TOR_IP=$(getent hosts $TOR_CONTROL_HOST | cut -d ' ' -f 1)