diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-04-25 22:04:46 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-04-27 11:42:34 +0300 |
commit | cdbef35e9a02d28a29eac949fb7730fa98dd10ca (patch) | |
tree | 5b85b3f5b8809f1d189a64ebb972f43e42b001b3 /etc | |
parent | b1991214131cee42377dadb092861dbe5493cff2 (diff) |
nc-audit: fixes to armbian build system
Diffstat (limited to 'etc')
-rw-r--r-- | etc/ncp-config.d/nc-audit.sh | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/etc/ncp-config.d/nc-audit.sh b/etc/ncp-config.d/nc-audit.sh index 12bc46a7..04ef9c80 100644 --- a/etc/ncp-config.d/nc-audit.sh +++ b/etc/ncp-config.d/nc-audit.sh @@ -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 @@ -67,6 +65,8 @@ skip-test=FIRE-4513 EOF } +configure() +{ echo "General security audit" lynis audit system --profile /etc/lynis/ncp.prf --no-colors @@ -74,8 +74,6 @@ EOF debsecan } -install() { :; }; - # License # # This script is free software; you can redistribute it and/or modify it |