]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids.cgi: Move call of oinkmaster to an own subfunction
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 12 Dec 2017 19:24:11 +0000 (20:24 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 26 Jul 2018 09:45:17 +0000 (11:45 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi

index dcf821888bbb1463447f9611be304a31f2610072..5069dd46a90c65fae93ac724f792a4265c5312c9 100644 (file)
@@ -613,6 +613,11 @@ sub downloadrulesfile {
        }
 }
 
+sub oinkmaster () {
+       # Call oinkmaster to generate ruleset.
+       system("/usr/local/bin/oinkmaster.pl -v -s -u file:///var/tmp/snortrules.tar.gz -C /var/ipfire/snort/oinkmaster.conf -o /etc/snort/rules >>/var/tmp/log 2>&1 &");
+}
+
 sub readrulesfile ($) {
        my $rulefile = shift;