From 671f293771a68290cbbd7f6e514875c4482ba4d2 Mon Sep 17 00:00:00 2001 From: Claude Agent Date: Thu, 16 Jul 2026 05:08:07 +0000 Subject: [PATCH] tempo-testnet: fix init exit when validator_key.json exists Replace buggy && short-circuit with if/fi so the one-shot init exits 0 when the signing key is already present (matches mainnet/ moderato and templates/clients/reth.tempo.yml), unblocking sync resume on data-intact hosts still on the orphaned testnet compose. --- tempo/reth/tempo-testnet-reth-archive-trace.yml | 2 +- tempo/reth/tempo-testnet-reth-pruned-trace.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tempo/reth/tempo-testnet-reth-archive-trace.yml b/tempo/reth/tempo-testnet-reth-archive-trace.yml index d6cf4f50..451213f3 100644 --- a/tempo/reth/tempo-testnet-reth-archive-trace.yml +++ b/tempo/reth/tempo-testnet-reth-archive-trace.yml @@ -35,7 +35,7 @@ services: image: ${TEMPO_RETH_IMAGE:-ghcr.io/tempoxyz/tempo}:${TEMPO_CONSENSUS_KEYGEN_VERSION:-1.9.1} entrypoint: [/bin/sh, -c] command: - - '[ ! -f /secrets/validator_key.json ] && tempo consensus generate-signing-key --output /secrets/validator_key.json' + - 'if [ ! -f /secrets/validator_key.json ]; then tempo consensus generate-signing-key --output /secrets/validator_key.json; fi' restart: no networks: - chains diff --git a/tempo/reth/tempo-testnet-reth-pruned-trace.yml b/tempo/reth/tempo-testnet-reth-pruned-trace.yml index 636f84e7..1ba93655 100644 --- a/tempo/reth/tempo-testnet-reth-pruned-trace.yml +++ b/tempo/reth/tempo-testnet-reth-pruned-trace.yml @@ -35,7 +35,7 @@ services: image: ${TEMPO_RETH_IMAGE:-ghcr.io/tempoxyz/tempo}:${TEMPO_CONSENSUS_KEYGEN_VERSION:-1.9.1} entrypoint: [/bin/sh, -c] command: - - '[ ! -f /secrets/validator_key.json ] && tempo consensus generate-signing-key --output /secrets/validator_key.json' + - 'if [ ! -f /secrets/validator_key.json ]; then tempo consensus generate-signing-key --output /secrets/validator_key.json; fi' restart: no networks: - chains