Skip to content

Commit

Permalink
fix: install rkhunter only when POstfix is to be installed
Browse files Browse the repository at this point in the history
  • Loading branch information
engineervix committed Jul 1, 2022
1 parent 4b99fd2 commit 67c7bda
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,10 @@ function furtherHardening() {
sudo apt update
sudo apt install lynis -y

# https://www.theurbanpenguin.com/detecting-rootkits-with-rkhunter-in-ubuntu-18-04/
sudo apt install -y rkhunter
if [[ $SENDGRID || $MAILJET ]]; then
# https://www.theurbanpenguin.com/detecting-rootkits-with-rkhunter-in-ubuntu-18-04/
sudo apt install -y rkhunter
fi

sudo lynis audit system
}
Expand Down

0 comments on commit 67c7bda

Please sign in to comment.