aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Dvoriancev <dv_serg@mail.ru>2012-10-31 21:34:43 +0400
committerSergey Dvoriancev <dv_serg@mail.ru>2012-10-31 21:34:43 +0400
commitd12fb47fb84ca2d531b33e4c9eb5fc4742f2364d (patch)
tree17af305992eed5a1049484d0ddbb225d0f2fac40
parent94a3782309323efdfcdf802679f76354dbdd79ad (diff)
downloadpfsense-packages-d12fb47fb84ca2d531b33e4c9eb5fc4742f2364d.tar.gz
pfsense-packages-d12fb47fb84ca2d531b33e4c9eb5fc4742f2364d.tar.bz2
pfsense-packages-d12fb47fb84ca2d531b33e4c9eb5fc4742f2364d.zip
Update config/squidGuard/squidguard_configurator.inc
Check exists 'squid_resync' function.
-rw-r--r--config/squidGuard/squidguard_configurator.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/squidGuard/squidguard_configurator.inc b/config/squidGuard/squidguard_configurator.inc
index 59690183..bfa94ca9 100644
--- a/config/squidGuard/squidguard_configurator.inc
+++ b/config/squidGuard/squidguard_configurator.inc
@@ -446,7 +446,10 @@ function squid_reconfigure($remove_only = '')
$config['installedpackages']['squid']['config'][0]['custom_options'] = $conf;
write_config('Update redirector options to squid config.');
- squid_resync();
+ # resync squid package, if installed
+ if (function_exists('squid_resync')) {
+ squid_resync();
+ }
}
# ------------------------------------------------------------------------------