From f92f80abd04255ea1aa6c9d5f9cb4267201f75f1 Mon Sep 17 00:00:00 2001 From: rob Date: Sat, 7 Feb 2026 09:52:28 +0000 Subject: [PATCH] show-ram.sh: Fix path mapping to compose file Path maps directly to compose file in subdirectories: op/reth/base-mainnet-op-reth-archive-trace -> op/reth/base-mainnet-op-reth-archive-trace.yml Co-Authored-By: Claude Opus 4.5 --- show-ram.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/show-ram.sh b/show-ram.sh index 4f688fab..5d8758b1 100755 --- a/show-ram.sh +++ b/show-ram.sh @@ -86,10 +86,10 @@ if [ -z "$NODE_PATH" ]; then used_server_ram=$(free -h | awk '/^Mem:/ {print $3}') echo "Server RAM: ${used_server_ram} / ${total_server_ram}" else - # Specific node - extract compose name from path - # Handle both "ethereum-mainnet-geth-archive" and "ethereum/geth/ethereum-mainnet-geth-archive" + # Specific node - path maps directly to compose file + # e.g., "op/reth/base-mainnet-op-reth-archive-trace" -> "op/reth/base-mainnet-op-reth-archive-trace.yml" + COMPOSE_FILE="${BASEPATH}/${NODE_PATH}.yml" COMPOSE_NAME=$(basename "$NODE_PATH") - COMPOSE_FILE="${BASEPATH}/${COMPOSE_NAME}.yml" if [ ! -f "$COMPOSE_FILE" ]; then echo "Error: Compose file not found: $COMPOSE_FILE"