Files
hamview/cmd/hamview-receiver/entrypoint.sh
maze 95eb917871
All checks were successful
Test and build / Test and lint (push) Successful in 1m12s
Test and build / Build collector (push) Successful in 1m32s
Test and build / Build receiver (push) Successful in 1m48s
Fix entrypoint
2026-02-24 15:40:04 +01:00

24 lines
498 B
Bash
Executable File

#!/bin/bash
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