From a1c44d849eb257a1385b704822fcd0f48a92ee6a Mon Sep 17 00:00:00 2001 From: Adrian Richter Date: Tue, 1 Oct 2024 14:04:35 +0200 Subject: [PATCH] Add option to not wait for DS-writer on startup --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 90e63d2..2f8bf26 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,6 +1,6 @@ #!/bin/sh -if [[ $DATASTORE_WRITER_HOST && $DATASTORE_WRITER_PORT ]]; then +if [ ! $ANONYMOUS_ONLY -a $DATASTORE_WRITER_HOST -a $DATASTORE_WRITER_PORT ]; then while ! nc -z "$DATASTORE_WRITER_HOST" "$DATASTORE_WRITER_PORT"; do echo "waiting for $DATASTORE_WRITER_HOST:$DATASTORE_WRITER_PORT" sleep 1