ids-functions.pl: Call &_cleanup_rulesdir() function before calling oinkmaster.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2018-10-12 15:16:32 +02:00
parent b59cdbeea5
commit 883820bdcb

View 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);