diff --git a/etc/ncp-config.d/nc-audit.sh b/etc/ncp-config.d/nc-audit.sh index 12bc46a75..04ef9c806 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 <