-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add custom Database URL to freshclam #22
Comments
Can I have an example freshclam.conf file on how you envision this could work? I could easily build this in. |
Hey, quick reply, you're awesome 😎 In docker-compose or podman-compose:
(Not sure if compose will require some quotes around that because of the slashes and all but...) At the end of the freshclam.conf file, the script would append the following lines:
|
OK! This seems very straight forward, thank you. I just added this functionality to |
That was quick! I should try to learn git again, but last time I tried I broke a repo hahaha It appears to work-ish. For some reason there is no new line after each insertion:
Relevant docker-compose:
Line: https://github.com/tiredofit/docker-clamav/blob/master/install/etc/cont-init.d/10-clamd#L189 |
Ack my bad. |
The file itself didn't change. I made sure to use the The default databases themselves are still being downloaded. I also tried stopping the container, delete de config folder and relaunch the container. I have no clue why the linebreak isn't getting inserted :/ |
Summary
Every time the container starts, the
freshclam.conf
is overwritten.Steps to reproduce
Modify the freshclam config file
Restart the container
What is the expected correct behavior?
The freshclam file shouldn't change if not needed.
Relevant logs and/or screenshots
Possible fixes
It would be nice to have a FRESHCLAM_DATABASES variable that allow a comma separated list of URLS to add to the freshclam conf file, or detect if any variable have changed and update only those in the config file.
The text was updated successfully, but these errors were encountered: