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.
This commit was merged in pull request #42.
This commit is contained in:
2026-07-16 05:08:07 +00:00
parent d2dc6a607e
commit 671f293771
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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