From b4a7d4ca90a04c99ad2d87c939114459fe537028 Mon Sep 17 00:00:00 2001 From: Till Brehm Date: Wed, 27 Jul 2016 17:15:12 +0200 Subject: [PATCH] Avoid postconf -M errors on old postfix versions. --- install/lib/installer_base.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php index 45a968e734..de46f56979 100644 --- a/install/lib/installer_base.lib.php +++ b/install/lib/installer_base.lib.php @@ -812,7 +812,7 @@ class installer_base { public function get_postfix_service($service, $type) { global $conf; - exec("postconf -M", $out, $ret); + exec("postconf -M 2> /dev/null", $out, $ret); if ($ret === 0) { //* with postfix >= 2.9 we can detect configured services with postconf unset($out); -- GitLab