From fde694099368dbf19aeeb087d2d1600c03724174 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Wed, 30 Oct 2024 12:49:01 +0100 Subject: [PATCH] ensure docker entrypoint uses $OTR_TOPICS if defined, with fallback to $OTR_TOPIC addresses #86 --- entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index e949742..321530f 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,4 +4,6 @@ if ! [ -f ${OTR_STORAGEDIR}/ghash/data.mdb ]; then ot-recorder --initialize fi -ot-recorder ${OTR_TOPIC} "$@" +# invoke ot-recorder with either $OTR_TOPIC or $OTR_TOPICS, with the +# latter overriding the former +ot-recorder ${OTR_TOPICS:-$OTR_TOPIC} "$@"