mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-12 10:45:14 +02:00
[Clamd] Add SKIP_CLAMD variable to disable Clamd start
This commit is contained in:
parent
a2f1c09a84
commit
ed11e7586e
@ -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 &
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user