2023-07-04 11:46:49 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-07-10 13:15:06 +00:00
|
|
|
# Parameters
|
|
|
|
if [[ "${NAT_IP_AUTO}" == "true" ]]; then
|
|
|
|
export CODEX_NAT=$(hostname --ip-address)
|
|
|
|
echo "Set CODEX_NAT: ${CODEX_NAT}"
|
|
|
|
fi
|
|
|
|
|
2023-07-04 11:46:49 +00:00
|
|
|
# Run
|
|
|
|
echo "Run Codex node"
|
|
|
|
exec "$@"
|