update-ids-ruleset: Set correct ownership for rulesdir and files
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 29 Jan 2019 08:09:11 +0000 (09:09 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Tue, 29 Jan 2019 08:09:11 +0000 (09:09 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
src/scripts/update-ids-ruleset

index fe4f838..05d2ea6 100644 (file)
@@ -58,6 +58,9 @@ if(&IDS::downloadruleset()) {
 # Call oinkmaster to alter the ruleset.
 &IDS::oinkmaster();
 
+# Set correct ownership for the rulesdir and files.
+&IDS::set_ownership("$IDS::rulespath");
+
 # Check if the IDS is running.
 if(&IDS::ids_is_running()) {
        # Call suricatactrl to perform a reload.