2018-05-31 12:28:30 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-05-31 12:30:16 +02:00
|
|
|
current=$(pwd)
|
|
|
|
|
2018-05-31 12:28:30 +02:00
|
|
|
apt-get update >> /tmp/clamav.log 2>&1
|
2018-05-31 12:36:27 +02:00
|
|
|
apt-get install -y git build-essential automake autoconf zlib1g-dev libssl-dev libjson-c-dev libcurlpp-dev >> /tmp/clamav.log 2>&1
|
2018-05-31 12:28:30 +02:00
|
|
|
|
|
|
|
wget -O /usr/local/src/clamav.tar.gz https://www.clamav.net/downloads/production/clamav-0.100.0.tar.gz
|
|
|
|
cd /usr/local/src || exit
|
|
|
|
|
|
|
|
tar -xzvf clamav.tar.gz
|
|
|
|
cd clamav-0.100.0 || exit
|
|
|
|
|
|
|
|
./configure
|
|
|
|
make -j "$(nproc)"
|
2018-05-31 12:30:16 +02:00
|
|
|
make install
|
|
|
|
|
|
|
|
cp $current/cron/freshclam /etc/cron.daily/freshclam
|
|
|
|
chmod +x /etc/cron.daily/freshclam
|