mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 11:05:54 +02:00
ids-functions.pl: Display error if oinkmaster cannot be executed
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -189,7 +189,7 @@ sub oinkmaster () {
|
||||
openlog('oinkmaster', 'cons,pid', 'user');
|
||||
|
||||
# Call oinkmaster to generate ruleset.
|
||||
open(OINKMASTER, "/usr/local/bin/oinkmaster.pl -v -s -u file://$rulestarball -C $settingsdir/oinkmaster.conf -o $rulespath|");
|
||||
open(OINKMASTER, "/usr/local/bin/oinkmaster.pl -v -s -u file://$rulestarball -C $settingsdir/oinkmaster.conf -o $rulespath|") or die "Could not execute oinkmaster $!\n";
|
||||
|
||||
# Log output of oinkmaster to syslog.
|
||||
while(<OINKMASTER>) {
|
||||
|
||||
Reference in New Issue
Block a user