1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 09:04:12 +02:00

add local clam

This commit is contained in:
Robin Appelman 2025-06-16 18:33:36 +02:00
commit 9824fc9254
6 changed files with 42 additions and 1 deletions

View file

@ -0,0 +1 @@
DatabaseDirectory /var/lib/clamav

View file

@ -0,0 +1,2 @@
DatabaseDirectory /var/lib/clamav
DatabaseOwner haze

Binary file not shown.

View file

@ -28,6 +28,7 @@
sudo,
su,
which,
clamav,
debug ? false,
writeShellApplication,
}: let
@ -69,6 +70,12 @@
mkdir -p $out
cp -r ${../../redis-certificates} $out/redis-certificates
'';
clamav-data = runCommand "scripts" {} ''
mkdir -p $out/etc
mkdir -p $out/var/lib/clamav
cp ${data/clamav/daily.cvd} $out/var/lib/clamav/daily.cvd
cp -r ${configs/clamav} $out/etc/clamav
'';
baseImage = dockerTools.buildImage {
name = "icewind1991/haze-base";
@ -93,6 +100,7 @@
which
git
sqlite
clamav
# samba
wget
curl
@ -125,6 +133,7 @@ in
configs
scripts
redis-certificates
clamav-data
shadowSetupScript
];
fakeRootCommands = ''