Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
monotypical committed Feb 20, 2025
1 parent cae30cf commit d9030b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/deploy-aws-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,6 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install clamdscan
- name: Create clamav config file
run: |
sudo touch /etc/clamav/clamd.conf
sudo chown "$(whoami):$(whoami)" /etc/clamav/clamd.conf
echo "TCPAddr $CLAMD_HOST" > /etc/clamav/clamd.conf
echo "TCPSocket $CLAMD_PORT" >> /etc/clamav/clamd.conf
- name: Create DB
run: |
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ gem "sentry-ruby"

# S3 & Anti-virus
gem "aws-sdk-s3"
gem "ratonvirus"
gem "clamby"
gem "ratonvirus"
gem "ratonvirus-clamby"

# Postcode parsing
Expand Down
6 changes: 3 additions & 3 deletions config/initializers/clamby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
port = ENV.fetch("CLAMD_PORT", "3310")
config_path = ENV.fetch("CLAMD_CONFIG_PATH", "config/clamd.conf")

config = %{
config = %(
TCPAddr #{host}
TCPSocket #{port}
}
)

File.write(config_path, config)

Clamby.configure({
daemonize: true,
stream: true,
error_file: config_path
config_file: config_path,
})

0 comments on commit d9030b4

Please sign in to comment.