]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids-functions.pl: Display error if oinkmaster cannot be executed
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 18 Aug 2018 08:01:14 +0000 (10:01 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 18 Aug 2018 08:01:14 +0000 (10:01 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ids-functions.pl

index 0e1f2876b0c7d0ca0701e11817d324fc304557fc..cb16e1b49309030e7ef3238f8a1ff2e0c7f5e819 100644 (file)
@@ -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>) {