aboutsummaryrefslogtreecommitdiffstats
path: root/main/clamav/clamav.pre-upgrade
blob: 9956f95d63a83a9bbbb02ed9bc8753bdc7a789bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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