mailcow/data/Dockerfiles/clamd/bootstrap.sh

16 lines
335 B
Bash
Raw Normal View History

2017-02-21 22:26:20 +01:00
#!/bin/bash
2017-04-20 21:13:41 +02:00
trap "kill 0" SIGINT
2017-02-21 22:26:20 +01:00
2017-05-17 07:48:48 +02: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-21 22:26:20 +01:00
freshclam -d &
clamd &
2017-05-17 07:48:48 +02:00
tail -f /var/log/clamav/clamd.log /var/log/clamav/freshclam.log