Skip to content

Commit f0bed3a

Browse files
author
Marius Cramer
committed
Fixed regex in distribution files
1 parent 1db3b18 commit f0bed3a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

install/dist/lib/centos52.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function configure_amavis() {
144144
if(is_file($conf['postfix']['config_dir'].'/master.cf')) copy($conf['postfix']['config_dir'].'/master.cf', $conf['postfix']['config_dir'].'/master.cf~');
145145
$content = rf($conf['postfix']['config_dir'].'/master.cf');
146146
// Only add the content if we had not addded it before
147-
if(!preg_match('/^amavis\s+/m', $content)) {
147+
if(!preg_match('/^amavis\s+unix\s+/m', $content)) {
148148
unset($content);
149149
$content = rfsel($conf['ispconfig_install_dir'].'/server/conf-custom/install/master_cf_amavis.master', 'tpl/master_cf_amavis.master');
150150
af($conf['postfix']['config_dir'].'/master.cf', $content);

install/dist/lib/centos53.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function configure_amavis() {
145145
if(is_file($conf['postfix']['config_dir'].'/master.cf')) copy($conf['postfix']['config_dir'].'/master.cf', $conf['postfix']['config_dir'].'/master.cf~');
146146
$content = rf($conf['postfix']['config_dir'].'/master.cf');
147147
// Only add the content if we had not addded it before
148-
if(!preg_match('/^amavis\s+/m', $content)) {
148+
if(!preg_match('/^amavis\s+unix\s+/m', $content)) {
149149
unset($content);
150150
$content = rfsel($conf['ispconfig_install_dir'].'/server/conf-custom/install/master_cf_amavis.master', 'tpl/master_cf_amavis.master');
151151
af($conf['postfix']['config_dir'].'/master.cf', $content);

install/dist/lib/fedora.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ public function configure_amavis() {
500500
if(is_file($conf['postfix']['config_dir'].'/master.cf')) copy($conf['postfix']['config_dir'].'/master.cf', $conf['postfix']['config_dir'].'/master.cf~');
501501
$content = rf($conf['postfix']['config_dir'].'/master.cf');
502502
// Only add the content if we had not addded it before
503-
if(!preg_match('/^amavis\s+/m', $content)) {
503+
if(!preg_match('/^amavis\s+unix\s+/m', $content)) {
504504
unset($content);
505505
$content = rfsel($conf['ispconfig_install_dir'].'/server/conf-custom/install/master_cf_amavis.master', 'tpl/master_cf_amavis.master');
506506
af($conf['postfix']['config_dir'].'/master.cf', $content);

install/dist/lib/gentoo.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public function configure_amavis()
335335
// Append the configuration for amavisd to the master.cf file
336336
$content = rf($conf['postfix']['config_dir'].'/master.cf');
337337
// Only add the content if we had not addded it before
338-
if(!preg_match('/^amavis\s+/m', $content)) {
338+
if(!preg_match('/^amavis\s+unix\s+/m', $content)) {
339339
unset($content);
340340
$content = $this->get_template_file('master_cf_amavis', true);
341341
af($conf['postfix']['config_dir'].'/master.cf', $content);

install/dist/lib/opensuse.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ public function configure_amavis() {
534534
if(is_file($conf["postfix"]["config_dir"].'/master.cf')) copy($conf["postfix"]["config_dir"].'/master.cf', $conf["postfix"]["config_dir"].'/master.cf~');
535535
$content = rf($conf["postfix"]["config_dir"].'/master.cf');
536536
// Only add the content if we had not addded it before
537-
if(!preg_match('/^amavis\s+/m', $content)) {
537+
if(!preg_match('/^amavis\s+unix\s+/m', $content)) {
538538
unset($content);
539539
$content = rfsel($conf['ispconfig_install_dir'].'/server/conf-custom/install/master_cf_amavis.master', 'tpl/master_cf_amavis.master');
540540
af($conf['postfix']['config_dir'].'/master.cf', $content);

0 commit comments

Comments
 (0)