From 6081c400fb9a22b572f610fa475a267c1e37b3f9 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Thu, 13 Apr 2017 09:13:50 +0000 Subject: [PATCH 1/2] Print special 'removed' message on launch-plugin and stop-plugin --- weave | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weave b/weave index cecbc7a0..ad02843b 100755 --- a/weave +++ b/weave @@ -1990,7 +1990,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 From 9b5cef9167c5a6f78123d08a1a513fcdf5b045e4 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Thu, 13 Apr 2017 09:13:58 +0000 Subject: [PATCH 2/2] Stop and reset old weaveplugin container in case user has upgraded from /dev/null 2>&1 || true ;; stop-router) [ $# -eq 0 ] || usage @@ -2148,7 +2151,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