Fix check to see if plugin is running

This commit is contained in:
Bryan Boreham committed 2016-06-17 15:17:13 +01:00
1 parent 08e2c5c14e
commit 2d0be34a93
1 file changed
+1 -1
+1 -1
View File
@@ -1868,7 +1868,7 @@ stop_plugin() {
protect_against_docker_hang() {
# If the plugin is not running, remove its socket so Docker doesn't try to talk to it
if !check_running $PLUGIN_CONTAINER_NAME 2>/dev/null ; then
if ! check_running $PLUGIN_CONTAINER_NAME 2>/dev/null ; then
rm -f /run/docker/plugins/weave.sock /run/docker/plugins/weavemesh.sock
fi
}