summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreeve Jelbert2018-08-15 18:39:32 +0200
committerTreeve Jelbert2018-08-16 08:57:35 +0200
commita4b804ebb7d4f66fa8fa39233ecd2fc5f0c04196 (patch)
treebbc48972275eda371c0b923e2e03c6a0c1a3a51d
parentf5ec24170a112cd7b43872ef8b5d61fd59b5290d (diff)
clamav - tweak freahclam script
-rw-r--r--antivirus/clamav/HISTORY4
-rwxr-xr-xantivirus/clamav/init.d/freshclam3
2 files changed, 6 insertions, 1 deletions
diff --git a/antivirus/clamav/HISTORY b/antivirus/clamav/HISTORY
index acfc2679f0..f6bf21cf21 100644
--- a/antivirus/clamav/HISTORY
+++ b/antivirus/clamav/HISTORY
@@ -1,3 +1,7 @@
+2018-08-15 Treeve Jelbert <treeve@sourcemage.org>
+ * init.d/freshclam: create /var/run/clamav
+ this may be missing if /var/run is a tmpfs
+
2018-07-21 Treeve Jelbert <treeve@sourcemage.org>
* DETAILS: version 0.100.1
diff --git a/antivirus/clamav/init.d/freshclam b/antivirus/clamav/init.d/freshclam
index 8fac2a4157..228d9213fc 100755
--- a/antivirus/clamav/init.d/freshclam
+++ b/antivirus/clamav/init.d/freshclam
@@ -1,5 +1,6 @@
#!/bin/bash
-
+mkdir -p -m755 /var/run/clamav
+chown clamav /var/run/clamav
PROGRAM=/usr/bin/freshclam
PIDFILE="/var/run/clamav/freshclam.pid"
ARGS="-d --pid=$PIDFILE"