check if running

Signed-off-by: Kieran O Mahony <Kieran.O.Mahony1@ibm.com>
This commit is contained in:
Kieran O Mahony 2022-02-09 16:51:18 +00:00
parent fee6a44fcd
commit f9f4ad5ca1

View file

@ -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