Function server_forge::security::setup_security_scans

source ·
pub fn setup_security_scans() -> Result<(), Box<dyn Error>>
Expand description

Sets up regular security scans using rkhunter and chkrootkit.

This function creates a script to run both rkhunter and chkrootkit, then sets up a weekly cron job to execute this script.

§Errors

Returns an error if creating the script or setting up the cron job fails