Commit 538bd562 authored by Paul Cammish's avatar Paul Cammish

Revert "Be less aggressive with clamav updates"

This reverts commit 029abd8f
parent 35c20022
Pipeline #839 canceled with stages
in 34 seconds
......@@ -17,16 +17,15 @@ if [ $( grep -c public_ip /etc/hosts ) == 0 ]; then echo $(sympl-ip) public_ip >
# remove any existing definations
touch /srv/$(hostname -f)/config/antivirus
# try a defination update manually with the service stopped
service clamav-freshclam stop
# Start freshclam to download/update new definitions, whatever state it's in
# Start freshclam to download new definitions, whatever state it's in
systemctl unmask clamav-freshclam
service clamav-freshclam stop
rm -rf /run/clamav
service clamav-freshclam start
sleep 3
echo -n "I: Waiting for clamav to download/update databases."
echo -n "I: Waiting for clamav to download databases."
for i in $(seq 1 100) ; do
if [ -f "/var/lib/clamav/main.cvd" -o -f "/var/lib/clamav/main.cld" ] ; then
echo -n ' 1/3 '
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment