From e1e417a905ebd547c32e9eab574754c454830734 Mon Sep 17 00:00:00 2001
From: web3-nodeops
Date: Sat, 10 Aug 2024 14:28:00 +0300
Subject: [PATCH] Update geth-entrypoint
use env var for GETH_DATA_DIR if set
---
geth/geth-entrypoint | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/geth/geth-entrypoint b/geth/geth-entrypoint
index 8d09e4f1..eb4512dd 100755
--- a/geth/geth-entrypoint
+++ b/geth/geth-entrypoint
@@ -2,7 +2,7 @@
set -eu
VERBOSITY=${GETH_VERBOSITY:-3}
-GETH_DATA_DIR=/data
+GETH_DATA_DIR=${GETH_DATA_DIR:-/data}
RPC_PORT="${RPC_PORT:-8545}"
WS_PORT="${WS_PORT:-8546}"
AUTHRPC_PORT="${AUTHRPC_PORT:-8551}"