From d4332cafc875e2eecd96cfb724130105403b8099 Mon Sep 17 00:00:00 2001 From: dpeca Date: Fri, 15 Nov 2019 14:29:14 +0100 Subject: [PATCH] clamav-freshclam notification fix --- src/deb/vesta/postinst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/deb/vesta/postinst b/src/deb/vesta/postinst index 093447ea..efadbc8b 100755 --- a/src/deb/vesta/postinst +++ b/src/deb/vesta/postinst @@ -19,4 +19,10 @@ fi crontab -l | { cat; echo "10 2 * * 6 sudo find /home/*/tmp/ -type f -mtime +5 -exec rm {} \;"; } | crontab - +touch /var/lib/clamav/clamd.sock +chown clamav:clamav /var/lib/clamav/clamd.sock +sed -i "s#/var/run/clamav/clamd.ctl#/var/lib/clamav/clamd.sock#g" /etc/clamav/clamd.conf +systemctl restart clamav-daemon +systemctl restart clamav-freshclam + exit 0