]> git.proxmox.com Git - dab-pve-appliances.git/commit
pmg: include clamav cvd files in template
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 2 Jan 2020 16:53:37 +0000 (17:53 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 6 Jan 2020 08:51:40 +0000 (09:51 +0100)
commit632b858c2e130fe1d6cf0677bee68b6a45b45d0a
tree004572ca3250edd89b85892c83a2dabb90bd9b7d
parent2885dfc17f43f0c02a9d6dbe375eac532f5671fb
pmg: include clamav cvd files in template

pmg depends on clamav, which does not start upon first boot without the
presence of it's virus database files.

By downloading them on the host and shipping them with the template
clamav-daemon starts up successfully. Since clamav-freshclam will
start downloading any updated files upon booting and notify clamav-daemon
the timeframe where the appliance runs with older virus defifinions is rather
short.

Additionally this follows the way we ship the cvd files in the ISO image.

Downloading happens outside of the container, since it does not have access to
the network. We download with curl, but only if the server files are
newer than the local files, so test for file existence before moving
the temporary file over.

Tested by creating an image, starting a container from that image and
verifying that clamav-daemon starts up upon first boot.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
debian-10.0-pmg-64/Makefile