aboutsummaryrefslogtreecommitdiffstats
path: root/config/lightsquid/lightsquid.inc
diff options
context:
space:
mode:
authorSergey Dvoriancev <dv_serg@mail.ru>2012-10-31 21:21:52 +0400
committerSergey Dvoriancev <dv_serg@mail.ru>2012-10-31 21:21:52 +0400
commit94a3782309323efdfcdf802679f76354dbdd79ad (patch)
tree028921f581bfa6a7bc079223c62302c954483486 /config/lightsquid/lightsquid.inc
parent43e964fbbda58e4b8be0920ea01dd3f72aec4d9b (diff)
downloadpfsense-packages-94a3782309323efdfcdf802679f76354dbdd79ad.tar.gz
pfsense-packages-94a3782309323efdfcdf802679f76354dbdd79ad.tar.bz2
pfsense-packages-94a3782309323efdfcdf802679f76354dbdd79ad.zip
Fix squid.inc require
Also check 'resync_squid' function.
Diffstat (limited to 'config/lightsquid/lightsquid.inc')
-rw-r--r--config/lightsquid/lightsquid.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/lightsquid/lightsquid.inc b/config/lightsquid/lightsquid.inc
index b7af0e1e..5fd89470 100644
--- a/config/lightsquid/lightsquid.inc
+++ b/config/lightsquid/lightsquid.inc
@@ -37,6 +37,7 @@ require_once('service-utils.inc');
if (file_exists('squid.inc')) {
require_once('squid.inc');
}
+else update_log("File 'squid.inc' not found.");
$pfs_version = substr(trim(file_get_contents("/etc/version")),0,3);
switch ($pfs_version) {
@@ -299,7 +300,10 @@ function lightsquid_resync() {
$config['installedpackages']['squidnac']['config'][0]['ext_cachemanager'] = $ifmgr;
write_config();
- squid_resync();
+ if (function_exists('squid_resync')) {
+ squid_resync();
+ }
+ else update_log("Function 'squid_resync' not found.");
}
}