From 3036353086d79a0a2933e38ce06da578d3067f8b Mon Sep 17 00:00:00 2001 From: zkdev Date: Tue, 16 Apr 2024 14:44:53 +0200 Subject: [PATCH] fix: Properly prepare clamav environment --- clamav_entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clamav_entrypoint.sh b/clamav_entrypoint.sh index 34255a02..45af004c 100755 --- a/clamav_entrypoint.sh +++ b/clamav_entrypoint.sh @@ -2,6 +2,9 @@ set -eu +mkdir /run/clamav +chown -R clamav /run/clamav + # start up freshclam to pull the definitions. In our deployment, these will be pulled # from a cluster-local mirror freshclam --daemon @@ -10,9 +13,6 @@ freshclam --daemon echo "Sleeping for 45 seconds to give freshclam time to download the virus definitions ..." sleep 45 echo "Done" - -mkdir /run/clamav -chown -R clamav /run/clamav clamd # watch logfile