Skip to content

Commit

Permalink
update addons/maldet.sh Linux Malware Detect + ClamAV scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
centminmod committed Sep 26, 2014
1 parent b207760 commit 64907a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/maldet.sh
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 64907a8

Please sign in to comment.