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
|
2018-01-18 13:31:00 +08:00
|
|
|
echo_b "=== Join peers ${PEERS} from org ${ORGS} into ${APP_CHANNEL}... ==="
|
2018-01-03 21:19:09 +08:00
|
|
|
|
|
|
|
for org in "${ORGS[@]}"
|
|
|
|
do
|
|
|
|
for peer in "${PEERS[@]}"
|
|
|
|
do
|
|
|
|
channelJoin ${APP_CHANNEL} $org $peer
|
|
|
|
done
|
|
|
|
done
|
2018-01-18 13:31:00 +08:00
|
|
|
|
|
|
|
echo_g "=== Join peers ${PEERS} from org ${ORGS} into ${APP_CHANNEL} Complete ==="
|
|
|
|
|
|
|
|
echo
|