From: Stefan Schantl Date: Tue, 12 Dec 2017 19:24:11 +0000 (+0100) Subject: ids.cgi: Move call of oinkmaster to an own subfunction X-Git-Tag: v2.23-core131~117^2~173^2~39^2~32 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=56dacb580e16210837ba55648ddfc9e18b860f02 ids.cgi: Move call of oinkmaster to an own subfunction Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index dcf821888b..5069dd46a9 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -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;