From d12fb47fb84ca2d531b33e4c9eb5fc4742f2364d Mon Sep 17 00:00:00 2001 From: Sergey Dvoriancev Date: Wed, 31 Oct 2012 21:34:43 +0400 Subject: Update config/squidGuard/squidguard_configurator.inc Check exists 'squid_resync' function. --- config/squidGuard/squidguard_configurator.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'config/squidGuard') 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(); + } } # ------------------------------------------------------------------------------ -- cgit v1.2.3