From 6eb187c4a49e24c7073c9bc0739bb0bdc2af0973 Mon Sep 17 00:00:00 2001 From: ponce Date: Fri, 23 Sep 2011 12:24:45 -0300 Subject: system/clamav: Updated for version 0.97.2 (+new maintainer) Signed-off-by: Niels Horn --- system/clamav/doinst.sh | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'system/clamav/doinst.sh') diff --git a/system/clamav/doinst.sh b/system/clamav/doinst.sh index 16dadeafc35d6..13c919b36b99e 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 -- cgit v1.2.3