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:
parent
46c8e36f96
commit
9824fc9254
6 changed files with 42 additions and 1 deletions
1
nix/image/configs/clamav/clamd.conf
Normal file
1
nix/image/configs/clamav/clamd.conf
Normal file
|
|
@ -0,0 +1 @@
|
|||
DatabaseDirectory /var/lib/clamav
|
||||
2
nix/image/configs/clamav/freshclam.conf
Normal file
2
nix/image/configs/clamav/freshclam.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
DatabaseDirectory /var/lib/clamav
|
||||
DatabaseOwner haze
|
||||
BIN
nix/image/data/clamav/daily.cvd
Normal file
BIN
nix/image/data/clamav/daily.cvd
Normal file
Binary file not shown.
|
|
@ -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 = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue