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