aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Dvoriancev <dv_serg@mail.ru>2012-10-30 10:57:22 +0400
committerSergey Dvoriancev <dv_serg@mail.ru>2012-10-30 10:57:22 +0400
commit0934288ce4f30b73d96ab6177cb8063aa305e752 (patch)
treefb101ce3d86f594e383f8009f97b5f1239375d53
parent5f2e6b204079525ac3f4330fa4afeb03303f9af0 (diff)
downloadpfsense-packages-0934288ce4f30b73d96ab6177cb8063aa305e752.tar.gz
pfsense-packages-0934288ce4f30b73d96ab6177cb8063aa305e752.tar.bz2
pfsense-packages-0934288ce4f30b73d96ab6177cb8063aa305e752.zip
Update config/squidGuard/squidguard_configurator.inc
Fix error 'Warning: require_once(squid.inc): failed to open stream: No such file or director'
-rw-r--r--config/squidGuard/squidguard_configurator.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/squidGuard/squidguard_configurator.inc b/config/squidGuard/squidguard_configurator.inc
index 5e822bfa..9764ca36 100644
--- a/config/squidGuard/squidguard_configurator.inc
+++ b/config/squidGuard/squidguard_configurator.inc
@@ -51,7 +51,12 @@ require_once('pfsense-utils.inc');
require_once('pkg-utils.inc');
require_once('filter.inc');
require_once('service-utils.inc');
-require_once('squid.inc');
+
+# if squid package exists
+# todo: move include string to the squid-function call string position
+if (file_exists('/usr/local/pkg/squid.inc')) {
+ require_once('squid.inc');
+}
# ------------------------------------------------------------------------------
# Allow additional execution time 0 = no limit