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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user