Last active
April 6, 2023 04:52
-
-
Save danieldourado/120624ebde9fd66055cf01c7c0476c1d to your computer and use it in GitHub Desktop.
.ebextensions file for clamav installation in elastic beanstalk amazon linux 2
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
packages: | |
yum: | |
clamav: [] | |
clamd: [] | |
files: | |
"/etc/freshclam.conf" : | |
mode: "000644" | |
owner: root | |
group: root | |
content: | | |
DatabaseDirectory /var/lib/clamav | |
UpdateLogFile /var/log/freshclam.log | |
DatabaseOwner clamupdate | |
DatabaseMirror database.clamav.net | |
LogSyslog yes | |
"/etc/clamd.d/scan.conf": | |
mode: "000644" | |
owner: root | |
group: root | |
content: | | |
LogFile /var/log/clamd.scan | |
LogSyslog yes | |
LocalSocket /var/run/clamd.scan/clamd.sock | |
FixStaleSocket yes | |
TCPSocket 3310 | |
TCPAddr 127.0.0.1 | |
commands: | |
01_set_locale: | |
command: "echo 'LANG=en_US.utf-8' >> /etc/environment" | |
02_update_clamav_db: | |
command: /usr/bin/freshclam | |
03_start_clamd: | |
command: systemctl start clamd@scan | |
04_enable_clamd: | |
command: systemctl enable clamd@scan |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment