2017-11-06 12:18:37 +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
|
2017-12-29 22:29:56 +08:00
|
|
|
echo_b "Update the channel ${APP_CHANNEL} by adding new Org..."
|
2017-12-01 17:34:21 +08:00
|
|
|
|
|
|
|
for org in "${ORGS[@]}"
|
|
|
|
do
|
|
|
|
for peer in "${PEERS[@]}"
|
|
|
|
do
|
2017-12-06 16:24:33 +08:00
|
|
|
channelJoin ${APP_CHANNEL} $org $peer
|
2017-12-01 17:34:21 +08:00
|
|
|
done
|
|
|
|
done
|