aboutsummaryrefslogtreecommitdiffstats
path: root/packages/snort
diff options
context:
space:
mode:
Diffstat (limited to 'packages/snort')
-rw-r--r--packages/snort/snort_download_rules.php4
-rw-r--r--packages/snort/snort_rulesets.php3
2 files changed, 7 insertions, 0 deletions
diff --git a/packages/snort/snort_download_rules.php b/packages/snort/snort_download_rules.php
index 774434c9..c1126400 100644
--- a/packages/snort/snort_download_rules.php
+++ b/packages/snort/snort_download_rules.php
@@ -34,6 +34,7 @@ if(!$start_me_up) {
require_once("functions.inc");
require_once("guiconfig.inc");
require_once("service-utils.inc");
+ require("/usr/local/pkg/snort.inc");
}
$pgtitle = "Services: Snort: Update Rules";
@@ -47,6 +48,9 @@ if($_GET['start'] or $_POST['start'])
else
$start_me_up = false;
+if(!is_dir("/usr/local/etc/snort/rules"))
+ $start_me_up = true;
+
include("head.inc");
?>
diff --git a/packages/snort/snort_rulesets.php b/packages/snort/snort_rulesets.php
index 5ca19c7d..acb2da00 100644
--- a/packages/snort/snort_rulesets.php
+++ b/packages/snort/snort_rulesets.php
@@ -27,6 +27,9 @@
POSSIBILITY OF SUCH DAMAGE.
*/
+if(!is_dir("/usr/local/etc/snort/rules"))
+ Header("Location: snort_download_rules.php");
+
require("guiconfig.inc");
require_once("service-utils.inc");
require("/usr/local/pkg/snort.inc");