]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
suricata: Create directory to store the downloaded ruleset files.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 16 Apr 2022 12:48:35 +0000 (14:48 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 16 Apr 2022 12:48:35 +0000 (14:48 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
lfs/suricata

index 819f562a32267d9406cd24589bbf8be388a8dbbd..9a8583ea9e1f6a2ce4f8b4fe81d29780f9f435c4 100644 (file)
@@ -101,6 +101,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        # Create emtpy rules directory.
        -mkdir -p /var/lib/suricata
 
+       # Create empty cache directory.
+       -mkdir -p /var/cache/suricata
+
        # Move config files for references, threshold and classification
        # to the rules directory.
        rm -rfv /etc/suricata/*.config
@@ -113,6 +116,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        # contained files
        chown -R nobody:nobody /var/lib/suricata
 
+       # Set correct ownership for the cache directory.
+       chown nobody:nobody /var/cache/suricata
+
        # Create logging directory.
        -mkdir -p /var/log/suricata