diff --git a/start_or_update.sh b/start_or_update.sh index 4fcb274..e267c67 100755 --- a/start_or_update.sh +++ b/start_or_update.sh @@ -1,9 +1,9 @@ #!/bin/bash for NETWORK in mailnet mysqlnet reverse-proxy do - sudo docker network inspect ${NETWORK} && continue + sudo docker network inspect ${NETWORK} &> /dev/null && continue sudo docker network create ${NETWORK} - sudo docker network inspect ${NETWORK} || \ + sudo docker network inspect ${NETWORK} &> /dev/null || \ { echo "ERROR: could not create network ${NETWORK}, exiting."; exit 1; } done