From 277f2c1ae87c97c6eaf82b9b22cae58b9460279e Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Mon, 27 Apr 2015 15:48:22 -0300 Subject: Sanitize sarg version, add port_category, run_depends and fix pbi checking --- config/sarg/sarg.inc | 2 +- config/sarg/sarg_realtime.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'config/sarg') diff --git a/config/sarg/sarg.inc b/config/sarg/sarg.inc index 2788dab9..ce2617e1 100644 --- a/config/sarg/sarg.inc +++ b/config/sarg/sarg.inc @@ -32,7 +32,7 @@ */ /* ========================================================================== */ $pf_version=substr(trim(file_get_contents("/etc/version")),0,3); -if ($pf_version > 2.0){ +if ($pf_version == "2.1" || $pf_version == "2.2"){ // Function to get squidGuard directory // each squidGuard version has a different directory diff --git a/config/sarg/sarg_realtime.php b/config/sarg/sarg_realtime.php index c5d926e5..f7618d1a 100755 --- a/config/sarg/sarg_realtime.php +++ b/config/sarg/sarg_realtime.php @@ -28,7 +28,7 @@ */ $pf_version=substr(trim(file_get_contents("/etc/version")),0,3); -if ($pf_version > 2.0) +if ($pf_version == "2.1" || $pf_version == "2.2") define('SARG_DIR', '/usr/pbi/sarg-' . php_uname("m")); else define('SARG_DIR', '/usr/local'); -- cgit v1.2.3