Преглед изворни кода

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.
dpeca пре 9 година
родитељ
комит
7cc00677e4
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      install/vst-install-debian.sh

+ 4 - 0
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