Allow override CONFIG and FLAGS
All checks were successful
Test and build / Test and lint (push) Successful in 1m15s
Test and build / Build collector (push) Successful in 1m32s
Test and build / Build receiver (push) Successful in 1m48s

This commit is contained in:
2026-02-24 15:31:40 +01:00
parent 6d716e6654
commit 42ca30c8e4

View File

@@ -1,9 +1,17 @@
#!/bin/sh #!/bin/sh
RECEIVER_FLAGS=(
--debug
)
RECEIVER_CONFIG="${RECEIVER_CONFIG:-/app/config/hamview-receiver-${RECEIVER_PROTOCOL}.yaml}"
run() { run() {
case "${PROTOCOL}" in case "${RECEIVER_PROTOCOL}" in
"") exec "/app/hamview-receiver" help ;; "") exec "/app/hamview-receiver" help ;;
*) exec "/app/hamview-receiver" --config "/app/config/hamview-${PROTOCOL}.yaml" "${PROTOCOL}" ;; *) exec "/app/hamview-receiver" \
"${RECEIVER_FLAGS[@]}" \
--config "${RECEIVER_CONFIG}" \
"${RECEIVER_PROTOCOL}" ;;
esac esac
} }