summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/applications/klamav/klamav.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mandriva/2010.2/applications/klamav/klamav.sh')
-rwxr-xr-xmandriva/2010.2/applications/klamav/klamav.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/mandriva/2010.2/applications/klamav/klamav.sh b/mandriva/2010.2/applications/klamav/klamav.sh
new file mode 100755
index 000000000..4f091eedb
--- /dev/null
+++ b/mandriva/2010.2/applications/klamav/klamav.sh
@@ -0,0 +1,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