2022-02-20 21:56:33 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -euo pipefail
|
|
|
|
|
2022-02-20 22:42:43 +00:00
|
|
|
if [[ ! -f "/app/config/config.yaml" ]]; then
|
|
|
|
./multinode setup --config-dir config --identity-dir identity
|
2022-02-20 21:56:33 +00:00
|
|
|
fi
|
|
|
|
|
2022-02-20 22:42:43 +00:00
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --config-dir config"
|
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --identity-dir identity"
|
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --console.address=:15002"
|
|
|
|
|
|
|
|
exec ./multinode run $RUN_PARAMS "$@"
|