From b6e84fac3ab6ef7a87c4ad1156b634addfe97eb8 Mon Sep 17 00:00:00 2001 From: andryyy Date: Wed, 20 Sep 2017 12:50:50 +0200 Subject: [PATCH] Sleep instead of stopping containers to prevent restarts --- data/Dockerfiles/acme/docker-entrypoint.sh | 2 +- data/Dockerfiles/clamd/bootstrap.sh | 1 + data/Dockerfiles/fail2ban/logwatch.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/data/Dockerfiles/acme/docker-entrypoint.sh b/data/Dockerfiles/acme/docker-entrypoint.sh index 6715f791..36a31cf3 100755 --- a/data/Dockerfiles/acme/docker-entrypoint.sh +++ b/data/Dockerfiles/acme/docker-entrypoint.sh @@ -80,7 +80,7 @@ fi while true; do if [[ "${SKIP_LETS_ENCRYPT}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then echo "SKIP_LETS_ENCRYPT=y, skipping Let's Encrypt..." - sleep 3650d + sleep 365d exec $(readlink -f "$0") fi if [[ "${SKIP_IP_CHECK}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then diff --git a/data/Dockerfiles/clamd/bootstrap.sh b/data/Dockerfiles/clamd/bootstrap.sh index 21b09788..d815214b 100755 --- a/data/Dockerfiles/clamd/bootstrap.sh +++ b/data/Dockerfiles/clamd/bootstrap.sh @@ -4,6 +4,7 @@ chown -R clamav:clamav /var/log/clamav/ if [[ "${SKIP_CLAMD}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then echo "SKIP_CLAMD=y, skipping ClamAV..." + sleep 365d exit 0 fi diff --git a/data/Dockerfiles/fail2ban/logwatch.py b/data/Dockerfiles/fail2ban/logwatch.py index 9615d53a..6fc852ac 100644 --- a/data/Dockerfiles/fail2ban/logwatch.py +++ b/data/Dockerfiles/fail2ban/logwatch.py @@ -15,6 +15,7 @@ import json yes_regex = re.compile(r'([yY][eE][sS]|[yY])+$') if re.search(yes_regex, os.getenv('SKIP_FAIL2BAN', 0)): print "Skipping Fail2ban container..." + time.sleep(31536000) raise SystemExit r = redis.StrictRedis(host='172.22.1.249', decode_responses=True, port=6379, db=0)