exclude some docker-dirs
This commit is contained in:
parent
d7ee3ce496
commit
4736d34931
@ -186,7 +186,7 @@
|
|||||||
# Check every Traefik Host
|
# Check every Traefik Host
|
||||||
if [ -f /usr/local/bin/ssllabs-scan ]
|
if [ -f /usr/local/bin/ssllabs-scan ]
|
||||||
then
|
then
|
||||||
find /home/docker -maxdepth 1 -mindepth 1 -type d | while read dir
|
find /home/docker -maxdepth 1 -mindepth 1 -type d | egrep -v ".del$|.bak$|.old$|var-lib-docker$" | while read dir
|
||||||
do
|
do
|
||||||
if grep -q Host "$dir"/docker-compose.override.yml >/dev/null 2>&1
|
if grep -q Host "$dir"/docker-compose.override.yml >/dev/null 2>&1
|
||||||
then
|
then
|
||||||
@ -230,7 +230,7 @@
|
|||||||
create: yes
|
create: yes
|
||||||
marker: "# {mark} ANSIBLE MANAGED BLOCK"
|
marker: "# {mark} ANSIBLE MANAGED BLOCK"
|
||||||
block: |
|
block: |
|
||||||
find /home/docker -maxdepth 1 -mindepth 1 -type d | while read dir
|
find /home/docker -maxdepth 1 -mindepth 1 -type d | egrep -v ".del$|.bak$|.old$|var-lib-docker$" | while read dir
|
||||||
do
|
do
|
||||||
if grep -q Host "$dir"/docker-compose.override.yml >/dev/null 2>&1
|
if grep -q Host "$dir"/docker-compose.override.yml >/dev/null 2>&1
|
||||||
then
|
then
|
||||||
@ -247,7 +247,7 @@
|
|||||||
then
|
then
|
||||||
if ! grep -q "401 Unauthorized" ${g_tmp}/traefik-wget-check
|
if ! grep -q "401 Unauthorized" ${g_tmp}/traefik-wget-check
|
||||||
then
|
then
|
||||||
g_echo_error "Error while connecting ${host} with wget:
|
g_echo_error "Error while connecting ${host} with wget:
|
||||||
|
|
||||||
$(cat ${g_tmp}/traefik-wget-check)"
|
$(cat ${g_tmp}/traefik-wget-check)"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user