diff options
author | Sergey Dvoriancev <dv_serg@mail.ru> | 2012-10-31 21:21:52 +0400 |
---|---|---|
committer | Sergey Dvoriancev <dv_serg@mail.ru> | 2012-10-31 21:21:52 +0400 |
commit | 94a3782309323efdfcdf802679f76354dbdd79ad (patch) | |
tree | 028921f581bfa6a7bc079223c62302c954483486 /config/lightsquid | |
parent | 43e964fbbda58e4b8be0920ea01dd3f72aec4d9b (diff) | |
download | pfsense-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')
-rw-r--r-- | config/lightsquid/lightsquid.inc | 6 |
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."); } } |