aboutsummaryrefslogtreecommitdiffstats
path: root/community/clamav/clamav-daemon.pre-upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'community/clamav/clamav-daemon.pre-upgrade')
-rw-r--r--community/clamav/clamav-daemon.pre-upgrade11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/clamav/clamav-daemon.pre-upgrade b/community/clamav/clamav-daemon.pre-upgrade
new file mode 100644
index 0000000000..c8f82dacd4
--- /dev/null
+++ b/community/clamav/clamav-daemon.pre-upgrade
@@ -0,0 +1,11 @@
+#!/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
+
+exit 0
+