Re-added hamview-receiver
This commit is contained in:
17
cmd/hamview-receiver/entrypoint.sh
Executable file
17
cmd/hamview-receiver/entrypoint.sh
Executable 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
|
||||
Reference in New Issue
Block a user