make bin/multiweave work again in 'launch launches everything' world
This commit is contained in:
1 parent
80a232f44c
commit
03ac7a86c6
1 file changed
+2
-2
+2
-2
@@ -30,7 +30,7 @@ case "$1" in
|
|||||||
launch)
|
launch)
|
||||||
shift 1
|
shift 1
|
||||||
for i in $(seq $START $FINISH); do
|
for i in $(seq $START $FINISH); do
|
||||||
WEAVE_CONTAINER_NAME=weave$i WEAVE_PORT=$((5000+i)) $weavedir/weave launch -iface '' -name $(random_mac) -nickname weave$i -port $PORT "$@"
|
WEAVE_CONTAINER_NAME=weave$i WEAVE_PORT=$((5000+i)) $weavedir/weave launch-router -iface '' -name $(random_mac) -nickname weave$i -port $PORT "$@"
|
||||||
done
|
done
|
||||||
if [ $START -ne 1 ] ; then
|
if [ $START -ne 1 ] ; then
|
||||||
status=$(docker inspect --format='{{.State.Running}} {{.NetworkSettings.IPAddress}}' weave$((START-1)))
|
status=$(docker inspect --format='{{.State.Running}} {{.NetworkSettings.IPAddress}}' weave$((START-1)))
|
||||||
@@ -48,7 +48,7 @@ case "$1" in
|
|||||||
stop)
|
stop)
|
||||||
for i in $(seq $START $FINISH); do
|
for i in $(seq $START $FINISH); do
|
||||||
echo Stopping weave$i
|
echo Stopping weave$i
|
||||||
WEAVE_CONTAINER_NAME=weave$i $weavedir/weave stop
|
WEAVE_CONTAINER_NAME=weave$i $weavedir/weave stop-router
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
Reference in new issue
Block a user