mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
suricata: Rule files are now located in /var/lib/suricata
Place the rulefiles from now in "/var/lib/suricata". Fixes #11834 Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -32,7 +32,7 @@ int main(int argc, char *argv[]) {
|
||||
} else if (strcmp(argv[1], "reload") == 0) {
|
||||
safe_system("/etc/rc.d/init.d/suricata reload");
|
||||
} else if (strcmp(argv[1], "fix-rules-dir") == 0) {
|
||||
safe_system("chown -R nobody:nobody /etc/suricata/rules/");
|
||||
safe_system("chown -R nobody:nobody /var/lib/suricata");
|
||||
} else {
|
||||
fprintf(stderr, "\nBad argument given.\n\nsuricatactrl (start|stop|restart|reload)\n\n");
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user