aboutsummaryrefslogtreecommitdiffstats
path: root/extra/clamav/clamav.pre-upgrade
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-07-02 17:30:47 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-07-02 17:30:47 +0000
commit0c4a43f330873842ae85f7f41a923454b8ce4812 (patch)
tree96cbd7bbb6a650123c4585d3bbf211df966c440d /extra/clamav/clamav.pre-upgrade
parent439bbcd25575f703552d5c0740b1019693ddd19a (diff)
downloadaports-0c4a43f330873842ae85f7f41a923454b8ce4812.tar.bz2
aports-0c4a43f330873842ae85f7f41a923454b8ce4812.tar.xz
extra/clamav: make a default config that works out of the box
this includes fixes to init.d scripts, and logrotate config
Diffstat (limited to 'extra/clamav/clamav.pre-upgrade')
-rw-r--r--extra/clamav/clamav.pre-upgrade16
1 files changed, 16 insertions, 0 deletions
diff --git a/extra/clamav/clamav.pre-upgrade b/extra/clamav/clamav.pre-upgrade
new file mode 100644
index 0000000000..9956f95d63
--- /dev/null
+++ b/extra/clamav/clamav.pre-upgrade
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# make sure we don't lose our config
+mkdir -p /etc/clamav
+if [ -f /etc/clamav.conf ]; then
+ mv /etc/clamav.conf /etc/clamav/
+ ln -s clamav/clamav.conf /etc/clamav.conf
+fi
+
+if [ -f /etc/freshclam.conf ]; then
+ mv /etc/freshclam.conf /etc/clamav/
+ ln -s clamav/freshclam.conf /etc/freshclam.conf
+fi
+
+exit 0
+