mailcow/data/Dockerfiles/clamd/bootstrap.sh

14 lines
313 B
Bash
Raw Normal View History

2017-02-22 05:26:20 +08:00
#!/bin/bash
2017-05-17 13:48:48 +08:00
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
2017-02-22 05:26:20 +08:00
freshclam -d &
clamd &
2017-05-17 13:48:48 +08:00
tail -f /var/log/clamav/clamd.log /var/log/clamav/freshclam.log