Files
hamview-receiver/entrypoint.sh
maze f831a0bdc3
Some checks failed
Test and build / Test & lint (push) Successful in 1m8s
Test and build / Build (push) Failing after 1m7s
New entrypoint
2026-02-23 17:31:46 +01:00

18 lines
310 B
Bash
Executable File

#!/bin/sh
run() {
case "${PROTOCOL}" in
"") exec "/app/hamview-receiver" help ;;
*) exec "/app/hamview-receiver" --config "/app/config/hamview-${PROTOCOL}.yaml" "${PROTOCOL}" ;;
esac
}
case "$@" in
"")
run
;;
*)
exec "/bin/sh" -c "$@"
;;
esac