IDS: Set owner of suricata logging directory to correct user
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 10 Mar 2019 17:52:40 +0000 (18:52 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 10 Mar 2019 17:52:40 +0000 (18:52 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
lfs/suricata

index 8a1e502..07dfed2 100644 (file)
@@ -102,5 +102,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        # Create logging directory.
        -mkdir -p /var/log/suricata
 
+       # Set correct ownership for /var/log/suricata.
+       chown suricata:suricata /var/log/suricata
+
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)