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/
|
|
|
|
|
2017-07-04 18:05:44 +02:00
|
|
|
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
|