Skip to content

Commit

Permalink
Allow custom config for zebrad in test mode
Browse files Browse the repository at this point in the history
  • Loading branch information
upbqdn committed Oct 11, 2024
1 parent c718609 commit 69b03d4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,18 @@ run_tests() {
exec cargo test --locked --release --features "zebra-test" --package zebra-scan \
-- --nocapture --include-ignored scan_task_commands
else
exec "$@"
if [[ "$1" == "zebrad" ]] && [[ -f "${ZEBRA_CONF_PATH}" ]]; then
shift
echo "if"
echo "conf path: " "${ZEBRA_CONF_PATH}"
echo "pos param: " "$@"
exec zebrad -c "${ZEBRA_CONF_PATH}" "$@"
else
echo "else"
echo "conf path: " "${ZEBRA_CONF_PATH}"
echo "pos param: " "$@"
exec "$@"
fi
fi
}

Expand Down

0 comments on commit 69b03d4

Please sign in to comment.