From e9532c1aa240e5ff5179c27a1121aa61dc9af9f6 Mon Sep 17 00:00:00 2001 From: axenteoctavian Date: Tue, 23 Jan 2024 13:10:41 +0200 Subject: [PATCH] fixes after review --- scripts/testnet/deployFullStackSovereignChainWithScreen.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/testnet/deployFullStackSovereignChainWithScreen.sh b/scripts/testnet/deployFullStackSovereignChainWithScreen.sh index 916d7ceaffd..c9026c06201 100644 --- a/scripts/testnet/deployFullStackSovereignChainWithScreen.sh +++ b/scripts/testnet/deployFullStackSovereignChainWithScreen.sh @@ -14,7 +14,11 @@ sed -i 's/export USE_TXGEN=[01]/export USE_TXGEN=1/' variables.sh sed -i 's/export USE_PROXY=[01]/export USE_PROXY=1/' variables.sh sed -i 's/export USE_ELASTICSEARCH=[01]/export USE_ELASTICSEARCH=1/' variables.sh sed -i 's/export SOVEREIGN_DEPLOY=[01]/export SOVEREIGN_DEPLOY=1/' variables.sh -sed -i 's/export SHARD_VALIDATORCOUNT=[0-2]/export SHARD_VALIDATORCOUNT=3/' variables.sh + +source variables.sh +if [ "$SHARD_VALIDATORCOUNT" -lt 3 ]; then + sed -i 's/export SHARD_VALIDATORCOUNT=.*/export SHARD_VALIDATORCOUNT=3/' variables.sh +fi echo -e "${GREEN}Generating the configuration files...${NC}" ./config.sh