From 46ddb5b2270dd1aaa2e56a76ebb363fe3de6b47c Mon Sep 17 00:00:00 2001 From: doktornotor Date: Fri, 11 Sep 2015 08:38:52 +0200 Subject: squid - 2.1.x compatible boot check --- config/squid/squid.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/squid/squid.inc b/config/squid/squid.inc index 27bff27b..5a0946bb 100644 --- a/config/squid/squid.inc +++ b/config/squid/squid.inc @@ -543,10 +543,15 @@ function squid_validate_auth($post, &$input_errors) { } function squid_install_cron($should_install) { - global $config; - if (platform_booting()) { + global $g, $config; + if (function_exists("platform_booting")) { + if (platform_booting()) { + return; + } + } elseif ($g['booting']) { return; } + parse_config(true); if (is_array($config['installedpackages']['squidcache'])) { -- cgit v1.2.3