From 7cc00677e444c2eb0011ca4a554a606ddc3afff0 Mon Sep 17 00:00:00 2001 From: dpeca Date: Wed, 7 Sep 2016 02:49:17 +0200 Subject: [PATCH] Debian fix for ClamAV /var/run/clamav permission On default Debian8 installation /var/run/clamav has wrong permissions. ERROR: Can't save PID in file /var/run/clamav/clamd.pid Owner was a root. This is a fix for it. --- install/vst-install-debian.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install/vst-install-debian.sh b/install/vst-install-debian.sh index df6f2eb93..3b1b8803e 100755 --- a/install/vst-install-debian.sh +++ b/install/vst-install-debian.sh @@ -1037,6 +1037,10 @@ if [ "$clamd" = 'yes' ]; then wget $vestacp/clamav/clamd.conf -O /etc/clamav/clamd.conf /usr/bin/freshclam update-rc.d clamav-daemon defaults + if [ ! -d "/var/run/clamav" ]; then + mkdir /var/run/clamav + fi + chown -R clamav:clamav /var/run/clamav service clamav-daemon start check_result $? "clamav-daeom start failed" fi