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 <noreply@anthropic.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user