From b70981b68efcce5256eb11c6cd26ae123b10b6ea Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 24 Jul 2009 08:01:31 +0000 Subject: moved extra/* to main/ and fixed misc build issues --- main/clamav/clamav.pre-upgrade | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 main/clamav/clamav.pre-upgrade (limited to 'main/clamav/clamav.pre-upgrade') diff --git a/main/clamav/clamav.pre-upgrade b/main/clamav/clamav.pre-upgrade new file mode 100644 index 0000000000..9956f95d63 --- /dev/null +++ b/main/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 + -- cgit v1.2.3