summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/applications/klamav/klamav.sh
blob: 4f091eedbfc7ecacb97a8b37a92495ceb5e455db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

KLAMAV_DIR=${HOME}/.klamav

if [ ! -d ${KLAMAV_DIR}/database -o ! -d ${KLAMAV_DIR}/quarantine ]; then
   mkdir -p ${KLAMAV_DIR}/{database,quarantine}
fi

if [ ! -f ${KLAMAV_DIR}/database/main.cvd -o ! -f ${KLAMAV_DIR}/database/daily.cvd ]; then
   cp -f /var/lib/clamav/* ${KLAMAV_DIR}/database
fi

klamav-real