From 8c1d4e1a6a3d786f8ed79189a274f43cc915141f Mon Sep 17 00:00:00 2001 From: dappnodedev Date: Thu, 8 Aug 2024 14:06:53 +0200 Subject: [PATCH] Touch JWT file before echoing --- beacon-chain/entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beacon-chain/entrypoint.sh b/beacon-chain/entrypoint.sh index 1e874d3..487fc1d 100755 --- a/beacon-chain/entrypoint.sh +++ b/beacon-chain/entrypoint.sh @@ -10,6 +10,7 @@ VALID_FEE_RECIPIENT=$(get_valid_fee_recipient "${FEE_RECIPIENT}") MEVBOOST_FLAG=$(get_mevboost_flag "${NETWORK}" "${MEVBOOST_FLAG_KEYS}") JWT_SECRET=$(get_jwt_secret_by_network "${NETWORK}") +touch "${JWT_SECRET_FILE}" echo "${JWT_SECRET}" >"${JWT_FILE_PATH}" if [ -n "$(ls -A "${DATA_DIR}/db" 2>/dev/null)" ]; then @@ -43,6 +44,6 @@ exec ${NIMBUS_BIN} \ --metrics \ --metrics-address=0.0.0.0 \ --metrics-port=8008 \ - --jwt-secret=/jwtsecret \ + --jwt-secret="${JWT_SECRET_FILE}" \ --web3-url="${ENGINE_URL}" \ --suggested-fee-recipient="${VALID_FEE_RECIPIENT}" ${MEVBOOST_FLAG} ${EXTRA_OPTS}