]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/suricata
suricata: Create directory to store the downloaded ruleset files.
[ipfire-2.x.git] / 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