Commit f83007ab authored by Paul Cammish's avatar Paul Cammish

Merge branch 'buster-testing' into 'buster'

buster_testing -> buster

Closes #279

See merge request !172
parents b137c847 26522477
Pipeline #845 passed with stages
in 25 minutes and 20 seconds
......@@ -52,6 +52,16 @@ for i in $(seq 1 100) ; do
sleep 1
done
# horrible hack
if [ -f "/var/lib/clamav/bytecode.cvd" -o -f "/var/lib/clamav/bytecode.cld" ] && [ -f "/var/lib/clamav/daily.cvd" -o -f "/var/lib/clamav/daily.cld" ] && [ -f "/var/lib/clamav/main.cvd" -o -f "/var/lib/clamav/main.cld" ] ; then
echo "We have what look to be valid definitions..."
else
echo "Failed to download clamAV definitions, going to fallback."
cd /var/lib/clamav/
wget -qO clamav.tar.gz http://sympl.host/clamav.tar.gz
tar -xvf clamav.tar.gz
fi
# Start clamav, whatever state it's currently in
systemctl unmask clamav-daemon
service clamav-daemon stop
......
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