mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-25 10:22:59 +02:00
clamav: fix database present check
the mame of main.cvd has changed to main.cld on my system. Add both types and also ad bytecode.c?d Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -12,9 +12,12 @@ case "$1" in
|
||||
|
||||
COUNTER=0
|
||||
while [ "$COUNTER" -lt "61" ]; do
|
||||
[ -e "/var/lib/clamav/main.cld" ] || \
|
||||
[ -e "/var/lib/clamav/main.cvd" ] && \
|
||||
[ -e "/var/lib/clamav/daily.cvd" ] || \
|
||||
[ -e "/var/lib/clamav/daily.cld" ] && \
|
||||
[ -e "/var/lib/clamav/bytecode.cld" ] || \
|
||||
[ -e "/var/lib/clamav/bytecode.cvd" ] && \
|
||||
[ -e "/var/lib/clamav/daily.cld" ] || \
|
||||
[ -e "/var/lib/clamav/daily.cvd" ] && \
|
||||
break
|
||||
if [ "$COUNTER" -lt "1" ]; then
|
||||
boot_mesg -n "Downloading database"
|
||||
|
||||
Reference in New Issue
Block a user