Merge pull request #2897 from weaveworks/stop-old-plugin
More help for upgraders who use plugin commands
This commit is contained in:
commit
1cc0794e75
1 file changed
+5
-2
@@ -266,6 +266,7 @@ IMAGE=$BASE_IMAGE:$IMAGE_VERSION
|
||||
CONTAINER_NAME=${WEAVE_CONTAINER_NAME:-weave}
|
||||
|
||||
PLUGIN_NAME="$DOCKERHUB_USER/net-plugin"
|
||||
OLD_PLUGIN_CONTAINER_NAME=weaveplugin
|
||||
CNI_PLUGIN_NAME="weave-plugin-$IMAGE_VERSION"
|
||||
CNI_PLUGIN_DIR=${WEAVE_CNI_PLUGIN_DIR:-$HOST_ROOT/opt/cni/bin}
|
||||
# Note VOLUMES_CONTAINER which is for weavewait should change when you upgrade Weave
|
||||
@@ -1979,7 +1980,7 @@ EOF
|
||||
call_weave GET /report -H 'Accept: application/json'
|
||||
fi
|
||||
;;
|
||||
run|start|restart)
|
||||
run|start|restart|launch-plugin|stop-plugin)
|
||||
echo "The 'weave $COMMAND' command has been removed as of Weave Net version 2.0" >&2
|
||||
echo "Please see release notes for further information" >&2
|
||||
exit 1
|
||||
@@ -2108,6 +2109,8 @@ EOF
|
||||
[ $# -eq 0 ] || usage
|
||||
stop_router
|
||||
stop_proxy
|
||||
# In case user has upgraded from <v2.0 and left the old container running
|
||||
docker stop $OLD_PLUGIN_CONTAINER_NAME >/dev/null 2>&1 || true
|
||||
;;
|
||||
stop-router)
|
||||
[ $# -eq 0 ] || usage
|
||||
@@ -2137,7 +2140,7 @@ EOF
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
for NAME in $CONTAINER_NAME $PROXY_CONTAINER_NAME ; do
|
||||
for NAME in $CONTAINER_NAME $PROXY_CONTAINER_NAME $OLD_PLUGIN_CONTAINER_NAME ; do
|
||||
docker stop $NAME >/dev/null 2>&1 || true
|
||||
docker rm -f $NAME >/dev/null 2>&1 || true
|
||||
done
|
||||
|
||||
Reference in new issue
Block a user