浏览代码

Sleep instead of stopping containers to prevent restarts

andryyy 8 年之前
父节点
当前提交
b6e84fac3a

+ 1 - 1
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

+ 1 - 0
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
 

+ 1 - 0
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)