Skip to content
Permalink
Browse files

update addons/maldet.sh Linux Malware Detect + ClamAV scanner

  • Loading branch information...
centminmod committed Sep 26, 2014
1 parent b207760 commit 64907a826f706dc178a5a1a45d1e9b607fa2a2b3
Showing with 4 additions and 0 deletions.
  1. +4 −0 addons/maldet.sh
@@ -75,8 +75,10 @@ fi

setemailalert() {
if [[ ! -z "$ALERT_POEMAIL" ]]; then
sed -i 's/email_alert=0/email_alert=1/g' /usr/local/maldetect/conf.maldet
sed -i "s/email_addr=\"you@domain.com\"/email_addr=\"${ALERTEMAIL},${ALERT_POEMAIL}\"/g" /usr/local/maldetect/conf.maldet
else
sed -i 's/email_alert=0/email_alert=1/g' /usr/local/maldetect/conf.maldet
sed -i "s/email_addr=\"you@domain.com\"/email_addr=\"${ALERTEMAIL}\"/g" /usr/local/maldetect/conf.maldet
fi
}
@@ -131,6 +133,8 @@ clamavinstall() {
# install clamav and clamd
echo
cecho "Installing clamav..." $boldyellow
yum clean all -q
yum makecache fast -q
yum -y install clamav clamd
/etc/init.d/clamd start
chkconfig clamd on

0 comments on commit 64907a8

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