From fdb773449d5bdaffc9676fe741a2b981213c19db Mon Sep 17 00:00:00 2001 From: AadithyanRaju Date: Wed, 5 Mar 2025 11:52:56 +0530 Subject: [PATCH] modified script calls to enable multidestro support Signed-off-by: AadithyanRaju --- test-network/network.sh | 6 +++--- test-network/scripts/deployCC.sh | 2 +- test-network/scripts/utils.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test-network/network.sh b/test-network/network.sh index 27ac0590..f20d83e5 100755 --- a/test-network/network.sh +++ b/test-network/network.sh @@ -265,7 +265,7 @@ function createOrgs() { fi infoln "Generating CCP files for Org1 and Org2" - ./organizations/ccp-generate.sh + bash ./organizations/ccp-generate.sh } # Once you create the organization crypto material, you need to create the @@ -348,13 +348,13 @@ function createChannel() { # now run the script that creates a channel. This script uses configtxgen once # to create the channel creation transaction and the anchor peer updates. - scripts/createChannel.sh $CHANNEL_NAME $CLI_DELAY $MAX_RETRY $VERBOSE $bft_true + bash scripts/createChannel.sh $CHANNEL_NAME $CLI_DELAY $MAX_RETRY $VERBOSE $bft_true } ## Call the script to deploy a chaincode to the channel function deployCC() { - scripts/deployCC.sh $CHANNEL_NAME $CC_NAME $CC_SRC_PATH $CC_SRC_LANGUAGE $CC_VERSION $CC_SEQUENCE $CC_INIT_FCN $CC_END_POLICY $CC_COLL_CONFIG $CLI_DELAY $MAX_RETRY $VERBOSE + bash scripts/deployCC.sh $CHANNEL_NAME $CC_NAME $CC_SRC_PATH $CC_SRC_LANGUAGE $CC_VERSION $CC_SEQUENCE $CC_INIT_FCN $CC_END_POLICY $CC_COLL_CONFIG $CLI_DELAY $MAX_RETRY $VERBOSE if [ $? -ne 0 ]; then fatalln "Deploying chaincode failed" diff --git a/test-network/scripts/deployCC.sh b/test-network/scripts/deployCC.sh index 31e66925..f3c4eebd 100755 --- a/test-network/scripts/deployCC.sh +++ b/test-network/scripts/deployCC.sh @@ -69,7 +69,7 @@ function checkPrereqs() { checkPrereqs ## package the chaincode -./scripts/packageCC.sh $CC_NAME $CC_SRC_PATH $CC_SRC_LANGUAGE $CC_VERSION +bash ./scripts/packageCC.sh $CC_NAME $CC_SRC_PATH $CC_SRC_LANGUAGE $CC_VERSION PACKAGE_ID=$(peer lifecycle chaincode calculatepackageid ${CC_NAME}.tar.gz) diff --git a/test-network/scripts/utils.sh b/test-network/scripts/utils.sh index 49ea1d1d..9b40a966 100755 --- a/test-network/scripts/utils.sh +++ b/test-network/scripts/utils.sh @@ -224,7 +224,7 @@ function installPrereqs() { fi cd .. - ./install-fabric.sh ${IMAGE_PARAMETER} ${CA_IMAGE_PARAMETER} docker binary + bash ./install-fabric.sh ${IMAGE_PARAMETER} ${CA_IMAGE_PARAMETER} docker binary }