Skip to content
This repository has been archived by the owner on Aug 10, 2019. It is now read-only.

Commit

Permalink
installing and configuring cron-apt
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipe Farias committed Jul 12, 2011
1 parent 375bae9 commit 257ff1c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions basic-couchdb.sh
Expand Up @@ -70,6 +70,7 @@ apt-get -y install bash-completion less vim wget

# Security tools
install_security_tools
configure_cronapt
configure_chkrootkit
configure_rkhunter
configure_logcheck
Expand Down
9 changes: 8 additions & 1 deletion lib-system.sh
Expand Up @@ -164,7 +164,7 @@ function install_munin_node {

# Security tools
function install_security_tools {
apt-get -y install chkrootkit rkhunter fail2ban logcheck logcheck-database logwatch ufw
apt-get -y install cron-apt chkrootkit rkhunter fail2ban logcheck logcheck-database logwatch ufw

cp /usr/share/logwatch/default.conf/logwatch.conf /etc/logwatch/conf/
mkdir /var/cache/logwatch
Expand All @@ -179,6 +179,13 @@ function set_conf_value {
sed -i "s/^\($2[ ]*=[ ]*\).*/\1$3/" $1
}

function configure_cronapt {
CONF=/etc/cron-apt/config
test -f $CONF || exit 0

sed -i "s/^# \(MAILON=\).*/\1\"changes\"/" $CONF
}

function configure_chkrootkit {
CONF=/etc/chkrootkit.conf
test -f $CONF || exit 0
Expand Down

0 comments on commit 257ff1c

Please sign in to comment.