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"