bunkerized-nginx/scripts/clamav.sh
2020-06-06 21:01:28 +02:00

9 lines
177 B
Bash

#!/bin/sh
output=$(clamscan -i --no-summary $1 2> /dev/null)
rm -f $1
if echo "$output" | grep -q ".* FOUND$" ; then
echo "0 clamscan: $output"
else
echo "1 clamscan: ok"
fi