Skip to content

Commit

Permalink
user data clamav latest LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
mojotalantikite committed Feb 5, 2024
1 parent 2d61fc2 commit a818d41
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions services/uploads/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,20 @@ resources:
UserData:
Fn::Base64: !Sub |
#!/bin/bash
sudo apt-get update
sudo apt-get install -y clamav clamav-daemon
apt-get update
apt-get install -y clamav clamav-daemon

# Install clamav 1.0.4
wget https://www.clamav.net/downloads/production/clamav-1.0.4.linux.x86_64.deb
dpkg -i clamav-1.0.4.linux.x86_64.deb
apt-get install -f

# Write the freshclam.conf
echo "DatabaseMirror database.clamav.net" > /usr/local/etc/freshclam.conf
echo "CompressLocalDatabase yes" >> /usr/local/etc/freshclam.conf
chmod 644 /usr/local/etc/freshclam.conf
chown clamav:clamav /usr/local/etc/freshclam.conf

sudo systemctl enable clamav-freshclam
sudo systemctl start clamav-freshclam
sudo systemctl enable clamav-daemon
Expand Down

0 comments on commit a818d41

Please sign in to comment.