Files
hamview/cmd/hamview-receiver/entrypoint.sh
maze 42ca30c8e4
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
Allow override CONFIG and FLAGS
2026-02-24 15:31:40 +01:00

26 lines
500 B
Bash
Executable File

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