Allow override CONFIG and FLAGS
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
RECEIVER_FLAGS=(
|
||||
--debug
|
||||
)
|
||||
RECEIVER_CONFIG="${RECEIVER_CONFIG:-/app/config/hamview-receiver-${RECEIVER_PROTOCOL}.yaml}"
|
||||
|
||||
run() {
|
||||
case "${PROTOCOL}" in
|
||||
case "${RECEIVER_PROTOCOL}" in
|
||||
"") exec "/app/hamview-receiver" help ;;
|
||||
*) exec "/app/hamview-receiver" --config "/app/config/hamview-${PROTOCOL}.yaml" "${PROTOCOL}" ;;
|
||||
*) exec "/app/hamview-receiver" \
|
||||
"${RECEIVER_FLAGS[@]}" \
|
||||
--config "${RECEIVER_CONFIG}" \
|
||||
"${RECEIVER_PROTOCOL}" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user