Skip to content

Commit b5f64f6

Browse files
committed
Fixed a bug in the installer that caused additional lines to be appended to postfix master.cf on every update.
1 parent cd972d8 commit b5f64f6

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
@@ -504,7 +504,7 @@ function configure_amavis() {
504504
if(is_file($conf["postfix"]["config_dir"].'/master.cf')) copy($conf["postfix"]["config_dir"].'/master.cf',$conf["postfix"]["config_dir"].'/master.cf~');
505505
$content = rf("tpl/master_cf_amavis.master");
506506
// Only add the content if we had not addded it before
507-
if(!stristr("127.0.0.1:10025 inet n - - - - smtpd",$content)) {
507+
if(!stristr("127.0.0.1:10025",$content)) {
508508
af($conf["postfix"]["config_dir"].'/master.cf',$content);
509509
}
510510

0 commit comments

Comments
 (0)