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