mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
suricata: Create directory to store the downloaded ruleset files.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user