Skip to content

Commit 68e4346

Browse files
author
Till Brehm
committed
Merge branch '5756-postconf-warnings-during-upgrade-to-3-2b2' into 'develop'
Resolve "postconf warnings during upgrade to 3.2b2" Closes #5756 See merge request ispconfig/ispconfig3!1202
2 parents 54b0478 + b7f836a commit 68e4346

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

install/lib/installer_base.lib.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,9 @@ public function configure_postfix($options = '') {
11691169
$postconf_commands = array_merge($postconf_commands, array_filter(explode("\n", $content)));
11701170
}
11711171

1172+
// Remove comment lines, these would give fatal errors when passed to postconf.
1173+
$postconf_commands = array_filter($postconf_commands, function($line) { return preg_match('/^[^#]/', $line); });
1174+
11721175
//* These postconf commands will be executed on installation only
11731176
if($this->is_update == false) {
11741177
$postconf_commands = array_merge($postconf_commands, array(

0 commit comments

Comments
 (0)