projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c05d13c
)
Merged from 5.1: Added missing safeguard
author
Roland Mas
<lolando@debian.org>
Mon, 5 Sep 2011 09:28:45 +0000
(09:28 +0000)
committer
Roland Mas
<lolando@debian.org>
Mon, 5 Sep 2011 09:28:45 +0000
(09:28 +0000)
src/deb-specific/install-postfix.sh
patch
|
blob
|
history
diff --git
a/src/deb-specific/install-postfix.sh
b/src/deb-specific/install-postfix.sh
index 393bf070e84d40da0340faec18ec28872d3c42fa..45b7811f0bfdb80cb6b4c2dbfd512eedb38e6c15 100755
(executable)
--- a/
src/deb-specific/install-postfix.sh
+++ b/
src/deb-specific/install-postfix.sh
@@
-48,7
+48,11
@@
while ($l = <>) {
print $l;
};
chomp $l;
print $l;
};
chomp $l;
-$l .= ", users.$domain_name" unless ($l =~ /^[^#]*users.$domain_name/);
+if ($l =~ /^(\s*mydestination\s*=\s*)(\S.*)/) {
+ $l .= ", users.$domain_name" unless ($l =~ /users.$domain_name/);
+} else {
+ $l = "mydestination = users.$domain_name"
+}
print "$l\n";
while ($l = <>) { print $l; };
' < /etc/postfix/main.cf.gforge-new > $tmp1
print "$l\n";
while ($l = <>) { print $l; };
' < /etc/postfix/main.cf.gforge-new > $tmp1