New entrypoint
Some checks failed
Test and build / Test & lint (push) Successful in 1m8s
Test and build / Build (push) Failing after 1m7s

This commit is contained in:
2026-02-23 17:31:46 +01:00
parent 35101caacb
commit f831a0bdc3
3 changed files with 26 additions and 7 deletions

17
entrypoint.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/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