configure clamd.conf at a different location
Closed this issue · 1 comments
2c84cdd8 commented
We are using Scalingo and the buildpack https://github.com/Scalingo/clamav-buildpack
This buildpack makes clamd.conf available at /app/clamav/clamd.conf and therefore when we run bundle exec rails ratonvirus:test
we end up with:
Can't parse clamd configuration file /etc/clamav/clamd.conf
Ratonvirus scanner is not available!
How can we configure this gem to look for clamd.conf at a different location?
2c84cdd8 commented
Add the following to config/initializers/clamby.rb
if Rails.env.production?
Clamby.configure({daemonize: true, config_file: "/app/clamav/clamd.conf"})
end