#!/bin/bash # Launch security audit reports for NextCloudPi # # Copyleft 2017 by Ignacio Nunez Hernanz # GPL licensed (see end of file) * Use at your own risk! # # Usage: # # ./installer.sh nc-audit.sh () # # See installer.sh instructions for details # # More at https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/ # DESCRIPTION="Perform a security audit with lynis and debsecan" install() { apt-get update DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ lynis debian-goodies needrestart debsums debsecan cp /etc/lynis/default.prf /etc/lynis/ncp.prf cat >> /etc/lynis/ncp.prf <