Fix check to see if plugin is running
This commit is contained in:
1 parent
08e2c5c14e
commit
2d0be34a93
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user