#!/bin/bash
diro="/var/lib/containerd"
dirn="/var/lib/docker/containerd"
dirr="/run/docker/containerd"
if  [  -d  "$diro"  ];  then
    for jar_path_es in `find /var/lib/containerd -name log4j-core-2.11.1.jar`;do
        echo $jar_path_es
        rm -rf $jar_path_es
    done
fi

if  [  -d  "$diro"  ];  then
    for jar_path_logstash in `find /var/lib/containerd -name log4j-core-2.9.1.jar`;do
        echo $jar_path_logstash
        rm -rf $jar_path_logstash
    done
fi

if  [  -d  "$dirn"  ];  then
    for jar_path_es2 in `find /var/lib/docker/containerd -name log4j-core-2.11.1.jar`;do
        echo $jar_path_es
        rm -rf $jar_path_es2
    done
fi

if  [  -d  "$dirn"  ];  then
    for jar_path_logstash2 in `find /var/lib/docker/containerd -name log4j-core-2.9.1.jar`;do
        echo $jar_path_logstash
        rm -rf $jar_path_logstash2
    done
fi

if  [  -d  "$dirr"  ];  then
    for jar_path_es2 in `find /run/docker/containerd -name log4j-core-2.11.1.jar`;do
        echo $jar_path_es
        rm -rf $jar_path_es2
    done
fi

if  [  -d  "$dirr"  ];  then
    for jar_path_logstash2 in `find /run/docker/containerd -name log4j-core-2.9.1.jar`;do
        echo $jar_path_logstash
        rm -rf $jar_path_logstash2
    done
fi
