Browse Source

[Clamd] Add SKIP_CLAMD variable to disable Clamd start

andryyy 8 years ago
parent
commit
ed11e7586e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      data/Dockerfiles/clamd/bootstrap.sh

+ 5 - 0
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 &