diff options
Diffstat (limited to 'config/postfix')
-rwxr-xr-x | config/postfix/postfix.inc | 12 |
1 files changed, 9 insertions, 3 deletions
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"; |