Skip to content

Commit

Permalink
fix: Properly prepare clamav environment
Browse files Browse the repository at this point in the history
  • Loading branch information
zkdev committed Apr 16, 2024
1 parent 4567078 commit 3036353
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clamav_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3036353

Please sign in to comment.