From b4763dd65181b746466f144a5c34f3cd9823eebb Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 21 May 2019 22:50:53 +1000 Subject: [PATCH] Fix freshclam exiting 1 --- init | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init b/init index d864068..bbd3fdb 100755 --- a/init +++ b/init @@ -13,7 +13,8 @@ trap 'stop' SIGTERM if [ "$1" == "start" ]; then 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 /usr/bin/freshclam -dc 6