Skip to content

Commit b4a7d4c

Browse files
author
Till Brehm
committed
Avoid postconf -M errors on old postfix versions.
1 parent 74739bf commit b4a7d4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ public function configure_mailman($status = 'insert') {
812812
public function get_postfix_service($service, $type) {
813813
global $conf;
814814

815-
exec("postconf -M", $out, $ret);
815+
exec("postconf -M 2> /dev/null", $out, $ret);
816816

817817
if ($ret === 0) { //* with postfix >= 2.9 we can detect configured services with postconf
818818
unset($out);

0 commit comments

Comments
 (0)