Skip to content

Instantly share code, notes, and snippets.

@nickadam
Created July 26, 2016 14:26
Show Gist options
  • Select an option

  • Save nickadam/e24d3a2bbfdc35f53fe17d5c753b9b92 to your computer and use it in GitHub Desktop.

Select an option

Save nickadam/e24d3a2bbfdc35f53fe17d5c753b9b92 to your computer and use it in GitHub Desktop.
Install ClamAV minimal
#!/usr/bin/env bash
# Install clamav
apt-get update
apt-get -y install clamav clamav-daemon
# Exclude everything but /home/ and /tmp/
ls -d /*/ | grep -v "/home/" | grep -v "/tmp/" | sed 's/^/ExcludePath ^\//g' >> /etc/clamav/clamd.conf
# Update clam signatures
freshclam
# Start daemons
service clamav-daemon start
service clamav-freshclam start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment