Skip to content

Commit 7cc0067

Browse files
authored
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.
1 parent f0cf68e commit 7cc0067

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

install/vst-install-debian.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,10 @@ if [ "$clamd" = 'yes' ]; then
10371037
wget $vestacp/clamav/clamd.conf -O /etc/clamav/clamd.conf
10381038
/usr/bin/freshclam
10391039
update-rc.d clamav-daemon defaults
1040+
if [ ! -d "/var/run/clamav" ]; then
1041+
mkdir /var/run/clamav
1042+
fi
1043+
chown -R clamav:clamav /var/run/clamav
10401044
service clamav-daemon start
10411045
check_result $? "clamav-daeom start failed"
10421046
fi

0 commit comments

Comments
 (0)