Skip to content

Commit

Permalink
updated some conditions
Browse files Browse the repository at this point in the history
Signed-off-by: Sanket Teli <telisanket2002@gmail.com>
  • Loading branch information
Sanket-0510 committed Oct 25, 2024
1 parent a99c65e commit bb1d407
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
Empty file modified e2e-network/docker/test-05.sh
100644 → 100755
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,7 @@ upgradeChaincode() {
<% chaincodes.forEach((chaincode) => { -%>
if [ "$chaincodeName" = "<%= chaincode.name %>" ]; then
if [ -n "$(ls "$CHAINCODES_BASE_DIR/<%= chaincode.directory %>")" ]; then
<% if (global.capabilities.isV2) { -%>
<%- include('commands-generated/chaincode-install-v2.sh', { chaincode, global }); %>
<% } else { -%>
<%- include('commands-generated/chaincode-upgrade-v2.sh', { chaincode, global }); %>
<% } -%>
<%- include('commands-generated/chaincode-install-v2.sh', { chaincode, global }); %>
else
echo "Warning! Skipping chaincode '<%= chaincode.name %>' upgrade. Chaincode directory is empty."
echo "Looked in dir: '$CHAINCODES_BASE_DIR/<%= chaincode.directory %>'"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ services:
- ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE=/var/hyperledger/orderer/tls/server.crt
- ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY=/var/hyperledger/orderer/tls/server.key
- ORDERER_GENERAL_CLUSTER_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
- ORDERER_ADMIN_LISTENADDRESS=<%= orderer.address %>:7053
<%_ } _%>
working_dir: /var/hyperledger/orderer
command: orderer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ createChannelAndJoin() {
mkdir "$DIR_NAME" && cd "$DIR_NAME"

<% if(global.capabilities.isV3) { %>
cp /var/hyperledger/cli/config/"$CHANNEL_NAME".tx .
}
cp /var/hyperledger/cli/config/"$CHANNEL_NAME".pb .
<% } else { %>
cp /var/hyperledger/cli/config/"$CHANNEL_NAME".tx .
<% } %>
Expand Down

0 comments on commit bb1d407

Please sign in to comment.