]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids-functions.pl: Call &_cleanup_rulesdir() function before calling oinkmaster.
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 12 Oct 2018 13:16:32 +0000 (15:16 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 12 Oct 2018 13:16:32 +0000 (15:16 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ids-functions.pl

index 73a1add5c6064fa7af0e74a14557bcc39d44bc07..a621c8fa4c99cb0534ab2552c34a05d77b8f692c 100644 (file)
@@ -197,6 +197,9 @@ sub oinkmaster () {
        # Check if the files in rulesdir have the correct permissions.
        &_check_rulesdir_permissions();
 
+       # Cleanup the rules directory before filling it with the new rulest.
+       &_cleanup_rulesdir();
+
        # Load perl module to talk to the kernel syslog.
        use Sys::Syslog qw(:DEFAULT setlogsock);