aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/snort/snort_post_install.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/config/snort/snort_post_install.php b/config/snort/snort_post_install.php
index 13191a44..c295b881 100644
--- a/config/snort/snort_post_install.php
+++ b/config/snort/snort_post_install.php
@@ -246,10 +246,11 @@ if ($config['installedpackages']['snortglobal']['forcekeepsettings'] == 'on') {
if ($pkg_interface <> "console") {
update_status(gettext("Starting Snort using rebuilt configuration..."));
update_output_window(gettext("Please wait while Snort is started..."));
- }
- mwexec_bg("{$rcdir}snort.sh start");
- if ($pkg_interface <> "console")
+ mwexec("{$rcdir}snort.sh start");
update_output_window(gettext("Snort has been started using the rebuilt configuration..."));
+ }
+ else
+ mwexec_bg("{$rcdir}snort.sh start");
}
}