[Clamd] Run freshclam before starting ClamAV
parent
a4ef22729c
commit
cd6594df01
|
@ -38,10 +38,13 @@ sed -i '/^\s*$/d' /var/lib/clamav/whitelist.ign2
|
||||||
|
|
||||||
BACKGROUND_TASKS=()
|
BACKGROUND_TASKS=()
|
||||||
|
|
||||||
|
echo "Running freshclam..."
|
||||||
|
freshclam
|
||||||
|
|
||||||
(
|
(
|
||||||
while true; do
|
while true; do
|
||||||
freshclam
|
|
||||||
sleep 12600
|
sleep 12600
|
||||||
|
freshclam
|
||||||
done
|
done
|
||||||
) &
|
) &
|
||||||
BACKGROUND_TASKS+=($!)
|
BACKGROUND_TASKS+=($!)
|
||||||
|
|
|
@ -52,7 +52,7 @@ services:
|
||||||
- redis
|
- redis
|
||||||
|
|
||||||
clamd-mailcow:
|
clamd-mailcow:
|
||||||
image: mailcow/clamd:1.31
|
image: mailcow/clamd:1.32
|
||||||
build: ./data/Dockerfiles/clamd
|
build: ./data/Dockerfiles/clamd
|
||||||
restart: always
|
restart: always
|
||||||
dns:
|
dns:
|
||||||
|
|
Loading…
Reference in New Issue