Skip to content

Commit

Permalink
nc-audit: fixes to armbian build system
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Apr 27, 2018
1 parent b199121 commit cdbef35
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions etc/ncp-config.d/nc-audit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@

DESCRIPTION="Perform a security audit with lynis and debsecan"

configure()
install()
{
# moved installation here, because it is messing up the environment
type lynis &>/dev/null || {
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
lynis debian-goodies needrestart debsums debsecan
lynis debsecan debian-goodies debsums
cp /etc/lynis/default.prf /etc/lynis/ncp.prf
cat >> /etc/lynis/ncp.prf <<EOF
# Won't install apt-listbugs and all its ruby dependencies
Expand Down Expand Up @@ -67,15 +65,15 @@ skip-test=FIRE-4513
EOF
}

configure()
{
echo "General security audit"
lynis audit system --profile /etc/lynis/ncp.prf --no-colors

echo "Known vulnerabilities in this system"
debsecan
}

install() { :; };

# License
#
# This script is free software; you can redistribute it and/or modify it
Expand Down

0 comments on commit cdbef35

Please sign in to comment.