Don't check if the plugin is enabled before trying to remove the default 'weave network'

If the plugin wasn't enabled then that network shouldn't exist.
If the network 'weave' doesn't exist then util_op remove-plugin-network will do nothing.
If it does exist for some reason then docker will pause for a while and remove it anyway.
This commit is contained in:
Bryan Boreham committed 2017-05-17 09:27:40 +00:00
1 parent a36fc867d1
commit 292a50a891
1 file changed
+1 -1
+1 -1
View File
@@ -1303,7 +1303,7 @@ launch() {
}
stop() {
! is_plugin_v1_enabled || util_op remove-plugin-network weave || true
util_op remove-plugin-network weave || true
warn_if_stopping_proxy_in_env
docker stop $CONTAINER_NAME >/dev/null 2>&1 || echo "Weave is not running." >&2
# In case user has upgraded from <v2.0 and left old containers running