Adds script to inject private key for the purpose of testing. (#553)
This commit is contained in:
parent
71cd35112b
commit
13de6dc500
|
@ -6,6 +6,15 @@ if [[ "${NAT_IP_AUTO}" == "true" ]]; then
|
||||||
echo "Set CODEX_NAT: ${CODEX_NAT}"
|
echo "Set CODEX_NAT: ${CODEX_NAT}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If marketplace is enabled from the testing environment,
|
||||||
|
# The file has to be written before Codex starts.
|
||||||
|
if [ -n "${PRIV_KEY}" ]; then
|
||||||
|
echo ${PRIV_KEY} > "private.key"
|
||||||
|
chmod 600 "private.key"
|
||||||
|
export CODEX_ETH_PRIVATE_KEY="private.key"
|
||||||
|
echo "Private key set"
|
||||||
|
fi
|
||||||
|
|
||||||
# Run
|
# Run
|
||||||
echo "Run Codex node"
|
echo "Run Codex node"
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|
Loading…
Reference in New Issue