docker-compose-files/hyperledger_fabric/v1.0.2/scripts/test_channel_join.sh

20 lines
374 B
Bash
Raw Normal View History

2018-01-03 21:19:09 +08:00
#!/bin/bash
# Importing useful functions for cc testing
if [ -f ./func.sh ]; then
source ./func.sh
elif [ -f scripts/func.sh ]; then
source scripts/func.sh
fi
## Join all the peers to the channel
echo_b "Update the channel ${APP_CHANNEL} by adding new Org..."
for org in "${ORGS[@]}"
do
for peer in "${PEERS[@]}"
do
channelJoin ${APP_CHANNEL} $org $peer
done
done