Hypatia/scripts/0clamav.sh

19 lines
437 B
Bash
Raw Permalink Normal View History

2020-12-12 12:12:11 -05:00
#!/bin/sh
#License: CC0
2021-07-21 13:44:19 -04:00
#Description: Hypatia conversion script for ClamAV databases (GPL-2.0)
#sudo -i freshclam
origDir="$PWD"
mkdir /tmp/mss
cd /tmp/mss
cp /var/lib/clamav/main.c*d .
cp /var/lib/clamav/daily.c*d .
sigtool -u main.c*d
sigtool -u daily.c*d
mv /tmp/mss/*.fp* "$origDir/exclusions/"
mv /tmp/mss/*.hsb "$origDir/raw/"
mv /tmp/mss/*.hdb "$origDir/raw/"
mv /tmp/mss/*.hdu "$origDir/raw/"
mv /tmp/mss/*.hsu "$origDir/raw/"