Fix freshclam exiting 1
This commit is contained in:
parent
de7d7b5ff6
commit
b4763dd651
3
init
3
init
@ -13,7 +13,8 @@ trap 'stop' SIGTERM
|
|||||||
if [ "$1" == "start" ]; then
|
if [ "$1" == "start" ]; then
|
||||||
chown -R clamav:clamav /var/lib/clamav
|
chown -R clamav:clamav /var/lib/clamav
|
||||||
|
|
||||||
[ -f /var/lib/clamav/daily.cvd ] || /usr/bin/freshclam
|
# fresclam exits when it is up to date
|
||||||
|
[ -f /var/lib/clamav/daily.cvd ] || /usr/bin/freshclam || ([ $? -eq 1 ] && /bin/true)
|
||||||
|
|
||||||
# Update Daemon
|
# Update Daemon
|
||||||
/usr/bin/freshclam -dc 6
|
/usr/bin/freshclam -dc 6
|
||||||
|
Loading…
Reference in New Issue
Block a user