]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
convert-ids-multiple-providers: Always remove old enabled / disabled
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 7 Apr 2021 18:45:32 +0000 (20:45 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 19 Dec 2021 12:23:44 +0000 (13:23 +0100)
sids files.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/suricata/convert-ids-multiple-providers

index f9f797c780a38018f04671257ff7d05ed432db98..ab5844bb047d029d13b62e7b5dfa7ca1e9af6fd5 100644 (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.