aboutsummaryrefslogtreecommitdiff
path: root/system/clamav
diff options
context:
space:
mode:
authorponce <matteo.bernardini@gmail.com>2012-08-21 19:47:57 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-08-21 16:23:41 -0500
commit8dc7eb1c914d5754f0f3ebe5bf617881d251d8e4 (patch)
treec8e3cb4b8bdbad75427e335fe24ca240586f7b68 /system/clamav
parentff9d8a2bfcd4ef69dc8b224bfc5ce9244a715842 (diff)
system/clamav: Added a "su" option to the logrotate script
This is needed for the new logrotate 3.8.x Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/clamav')
-rw-r--r--system/clamav/clamav.SlackBuild2
-rw-r--r--system/clamav/logrotate.clamav1
2 files changed, 2 insertions, 1 deletions
diff --git a/system/clamav/clamav.SlackBuild b/system/clamav/clamav.SlackBuild
index edbdd499fe36..1bd047b7af7d 100644
--- a/system/clamav/clamav.SlackBuild
+++ b/system/clamav/clamav.SlackBuild
@@ -28,7 +28,7 @@
PRGNAM=clamav
VERSION=${VERSION:-0.97.5}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
diff --git a/system/clamav/logrotate.clamav b/system/clamav/logrotate.clamav
index 8154a8ba4eb0..29b860baa08d 100644
--- a/system/clamav/logrotate.clamav
+++ b/system/clamav/logrotate.clamav
@@ -5,6 +5,7 @@
delaycompress
notifempty
missingok
+ su clamav clamav
postrotate
/bin/kill -HUP `cat /var/run/clamav/clamd.pid 2>/dev/null` 2>/dev/null || true
endscript