Skip to content
Permalink
Browse files

better clamav install checks

  • Loading branch information...
brian
brian committed May 18, 2019
1 parent 183db59 commit a6d85662cc3b2beb32ecfb0efdf40c0851219cb7
Showing with 9 additions and 2 deletions.
  1. +9 −2 install.sh
@@ -87,8 +87,15 @@ fi
if [[ -x $(which clamscan 2> /dev/null) ]]; then #clamav installed
echo -e "$green\n Found ClamAV installed continuing\n$whi"
else
echo -e "$redbold Please install ClamAV first, then run this script again\n $whi"
exit 0
echo -e "$redbold Attempting to install ClamAV\n $whi"
if [[ -x $(which apt 2>dev/null) ]]; then #run apt
apt install clamav
elif [[ -x $(which yum 2>/dev/null) ]];then #run yum
yum install clamav
else
echo -e "$redbold Please install ClamAV first, then run this script again\n $whi"
exit 0
fi
fi

if [[ -e /opt/calamity/Loki ]]; then #Loki installed run update

0 comments on commit a6d8566

Please sign in to comment.
You can’t perform that action at this time.