ensure docker entrypoint uses $OTR_TOPICS if defined, with fallback to $OTR_TOPIC

addresses #86
This commit is contained in:
Jan-Piet Mens
2024-10-30 12:49:01 +01:00
parent 0a3be1601a
commit fde6940993

View File

@@ -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} "$@"