Created
July 26, 2016 14:26
-
-
Save nickadam/e24d3a2bbfdc35f53fe17d5c753b9b92 to your computer and use it in GitHub Desktop.
Install ClamAV minimal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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