convert-ids-multiple-providers: Always remove old enabled / disabled

sids files.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2021-04-07 20:45:32 +02:00
parent 17b9a1581c
commit f901c7401c

View File

@@ -170,11 +170,11 @@ if (%enabled_disabled_sids) {
# Set correct ownerships.
&IDS::set_ownership("$IDS::oinkmaster_provider_includes_file");
&IDS::set_ownership("$oinkmaster_provider_modified_sids_file");
}
# Remove old files.
unlink($old_enabled_sids_file);
unlink($old_disabled_sids_file);
}
#
## Step 6: Call oinkmaster and regenerate the ruleset structures.