summaryrefslogtreecommitdiff
path: root/system/clamav/doinst.sh
diff options
context:
space:
mode:
authorponce <matteo.bernardini@gmail.com>2011-09-23 12:24:45 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2011-09-23 12:24:45 -0300
commit6eb187c4a49e24c7073c9bc0739bb0bdc2af0973 (patch)
tree04e4c334e7bdf7bf9c379336637347da8275329b /system/clamav/doinst.sh
parente88a3ceca0552f36fe086554483239aa223a14a8 (diff)
downloadslackbuilds-6eb187c4a49e24c7073c9bc0739bb0bdc2af0973.tar.gz
system/clamav: Updated for version 0.97.2 (+new maintainer)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'system/clamav/doinst.sh')
-rw-r--r--system/clamav/doinst.sh19
1 files changed, 16 insertions, 3 deletions
diff --git a/system/clamav/doinst.sh b/system/clamav/doinst.sh
index 16dadeafc3..13c919b36b 100644
--- a/system/clamav/doinst.sh
+++ b/system/clamav/doinst.sh
@@ -13,9 +13,22 @@ config() {
done
}
+preserve_perms() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ -e $OLD ]; then
+ cp -a $OLD ${NEW}.incoming
+ cat $NEW > ${NEW}.incoming
+ mv ${NEW}.incoming $NEW
+ fi
+ config $NEW
+}
+
+preserve_perms etc/rc.d/rc.clamav.new
config etc/freshclam.conf.new
config etc/clamd.conf.new
-config etc/rc.d/rc.clamav.new
-config var/log/clamd.log.new ; rm -f var/log/clamd.log.new
-config var/log/freshclam.log.new ; rm -f var/log/freshclam.log.new
+config etc/clamav-milter.conf.new
+# Remove new log if one is already present
+config var/log/clamav/clamd.log.new ; rm -f var/log/clamav/clamd.log.new
+config var/log/clamav/freshclam.log.new ; rm -f var/log/clamav/freshclam.log.new