Skip to content
Snippets Groups Projects
Verified Commit 7f5056de authored by Dominik Kaminski's avatar Dominik Kaminski :fire:
Browse files

feat(clamav): Add daily diffs as well

parent 5c0ea1d6
No related branches found
No related tags found
No related merge requests found
Pipeline #111280 failed
......@@ -5,3 +5,4 @@
*.hdb filter=lfs diff=lfs merge=lfs -text
*.hsb filter=lfs diff=lfs merge=lfs -text
*.ldb filter=lfs diff=lfs merge=lfs -text
*.cdiff filter=lfs diff=lfs merge=lfs -text
......@@ -46,6 +46,16 @@ update_clamav_db:
#- cp "$CLAMAV_DB_PATH"/*.cld "$REPO_PATH"
#- cp "$REPO_PATH"/daily.cld "$REPO_PATH"/daily.cvd
# Fetch database diff
- DB_LATEST_VERSION=$(echo $(host -t txt current.cvd.clamav.net) | cut -d ':' -f3)
- |
for iter in {0..9}; do
TO_DOWNLOAD_VERSION=$(($DB_LATEST_VERSION - $iter))
if [ ! -f "daily-${TO_DOWNLOAD_VERSION}.cdiff" ]; then
wget --user-agent="CVDUPDATE/1.1.2 (3b7f06ec-5337-4030-8856-d3840301cfe3)" https://database.clamav.net/daily-${TO_DOWNLOAD_VERSION}.cdiff
fi
done
# Fetch additional database files
- wget -O badmacro.ndb https://ftp.swin.edu.au/sanesecurity/badmacro.ndb
- wget -O blurl.ndb https://ftp.swin.edu.au/sanesecurity/blurl.ndb
......
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.