mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-14 10:52:49 +02:00
15 lines
325 B
Bash
Executable File
15 lines
325 B
Bash
Executable File
#!/bin/bash
|
|
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..."
|
|
sleep 365d
|
|
exit 0
|
|
fi
|
|
|
|
freshclam -d &
|
|
clamd &
|
|
|
|
tail -f /var/log/clamav/clamd.log /var/log/clamav/freshclam.log
|