From 94a3782309323efdfcdf802679f76354dbdd79ad Mon Sep 17 00:00:00 2001 From: Sergey Dvoriancev Date: Wed, 31 Oct 2012 21:21:52 +0400 Subject: Fix squid.inc require Also check 'resync_squid' function. --- config/lightsquid/lightsquid.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'config/lightsquid') 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."); } } -- cgit v1.2.3