diff options
author | Tim Williams <tmw@autotrain.org> | 2011-10-17 18:47:27 +0100 |
---|---|---|
committer | Tim Williams <tmw@autotrain.org> | 2011-10-17 18:47:27 +0100 |
commit | 76ef832ce5348d12a871223d4c034c7daeaddb82 (patch) | |
tree | 7024a1f39a6114daa8c5ed24bb31a8687c832b9a /mandriva/2010.2/applications/klamav/klamav.sh | |
parent | ec2515f058c60d2478a549f58376db628ba556b9 (diff) | |
download | tde-packaging-76ef832ce5348d12a871223d4c034c7daeaddb82.tar.gz tde-packaging-76ef832ce5348d12a871223d4c034c7daeaddb82.zip |
Adding the remaining Mandriva patches and spec files
Diffstat (limited to 'mandriva/2010.2/applications/klamav/klamav.sh')
-rwxr-xr-x | mandriva/2010.2/applications/klamav/klamav.sh | 13 |
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 |