summaryrefslogtreecommitdiff
path: root/system/clamav/clamav.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2012-08-21 19:07:23 -0500
committerRobby Workman <rworkman@slackbuilds.org>2012-08-21 19:07:23 -0500
commit56c2b26f9660587d0e854e2acccf0feaf010bac6 (patch)
tree7c5c912be8192ca6727c68953cca1a7ad605bef2 /system/clamav/clamav.SlackBuild
parent4825bf48e5222e684fbdf5da5d82ac61778d096b (diff)
downloadslackbuilds-56c2b26f9660587d0e854e2acccf0feaf010bac6.tar.gz
system/clamav: /var/run/clamav/ must exist, so create in rc.clamav
This is for the admins who decide to symlink /var/run to /run (thereby putting the piddir on a tmpfs, which does not survive reboots)... Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/clamav/clamav.SlackBuild')
-rw-r--r--system/clamav/clamav.SlackBuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/system/clamav/clamav.SlackBuild b/system/clamav/clamav.SlackBuild
index 1bd047b7af..29c087ceb7 100644
--- a/system/clamav/clamav.SlackBuild
+++ b/system/clamav/clamav.SlackBuild
@@ -150,7 +150,9 @@ done
install -D -m 0755 $CWD/rc.clamav $PKG/etc/rc.d/rc.clamav.new
install -D -m 0644 $CWD/logrotate.clamav $PKG/etc/logrotate.d/clamav
-# Create pid, socket, db and log directories
+# Create pid, socket, db, and log directories
+# init script must still ensure that /var/run/clamav exists
+# and has proper ownership and permissions though
mkdir -p $PKG/var/{lib,log,run}/clamav
chmod 771 $PKG/var/{lib,log,run}/clamav