From ed11e7586e13834518e7d76d8537eda1b142639f Mon Sep 17 00:00:00 2001 From: andryyy Date: Tue, 4 Jul 2017 18:05:44 +0200 Subject: [PATCH] [Clamd] Add SKIP_CLAMD variable to disable Clamd start --- data/Dockerfiles/clamd/bootstrap.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/data/Dockerfiles/clamd/bootstrap.sh b/data/Dockerfiles/clamd/bootstrap.sh index 96c35667..6b4acb4d 100755 --- a/data/Dockerfiles/clamd/bootstrap.sh +++ b/data/Dockerfiles/clamd/bootstrap.sh @@ -4,6 +4,11 @@ trap "kill 0" SIGINT touch /var/log/clamav/clamd.log /var/log/clamav/freshclam.log chown -R clamav:clamav /var/log/clamav/ +if [[ "${SKIP_CLAMD}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then + echo "SKIP_CLAMD=y, skipping ClamAV..." + exit 0 +fi + freshclam -d & clamd &