From 4736d34931b8d3d88d5c26ec07d8181f5774930d Mon Sep 17 00:00:00 2001 From: olli Date: Tue, 29 Nov 2022 11:23:13 +0100 Subject: [PATCH] exclude some docker-dirs --- traefik.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/traefik.yml b/traefik.yml index 1ea9561..982ed70 100644 --- a/traefik.yml +++ b/traefik.yml @@ -186,7 +186,7 @@ # Check every Traefik Host if [ -f /usr/local/bin/ssllabs-scan ] 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 if grep -q Host "$dir"/docker-compose.override.yml >/dev/null 2>&1 then @@ -230,7 +230,7 @@ create: yes marker: "# {mark} ANSIBLE MANAGED 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 if grep -q Host "$dir"/docker-compose.override.yml >/dev/null 2>&1 then @@ -247,7 +247,7 @@ then if ! grep -q "401 Unauthorized" ${g_tmp}/traefik-wget-check 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)" fi