mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-26 11:35:10 +00:00
check if running
Signed-off-by: Kieran O Mahony <Kieran.O.Mahony1@ibm.com>
This commit is contained in:
parent
fee6a44fcd
commit
f9f4ad5ca1
1 changed files with 1 additions and 1 deletions
|
|
@ -269,7 +269,7 @@ function networkUp() {
|
||||||
function createChannel() {
|
function createChannel() {
|
||||||
# Bring up the network if it is not already up.
|
# Bring up the network if it is not already up.
|
||||||
|
|
||||||
if [ ! -d "organizations/peerOrganizations" ]; then
|
if [ ! -d "organizations/peerOrganizations" ] || ! $CONTAINER_CLI info > /dev/null 2>&1; then
|
||||||
infoln "Bringing up network"
|
infoln "Bringing up network"
|
||||||
networkUp
|
networkUp
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue