From 33a92e86d0a3ca526555b3adaadacbe19d8bf6a8 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Fri, 11 Sep 2015 08:47:11 +0200 Subject: postfix - 2.1.x compatible boot check Makes things a whole lot more simple, right... --- config/postfix/postfix.inc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'config/postfix') diff --git a/config/postfix/postfix.inc b/config/postfix/postfix.inc index 30a935bf..0629c187 100755 --- a/config/postfix/postfix.inc +++ b/config/postfix/postfix.inc @@ -231,12 +231,18 @@ function check_cron(){ } function sync_package_postfix($via_rpc="no") { - global $config; + global $g, $config; log_error("sync_package_postfix called with via_rpc={$via_rpc}"); # detect boot process - if (is_array($_POST)){ - if (!platform_booting()) { + if (is_array($_POST)) { + if (function_exists("platform_booting")) { + if (!platform_booting()) { + unset($boot_process); + } else { + $boot_process="on"; + } + } elseif (!($g['booting'])) { unset($boot_process); } else { $boot_process="on"; -- cgit v1.2.3