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