projects
/
postfix-cn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r10:
[postfix-cn.git]
/
debian
/
postinst
diff --git
a/debian/postinst
b/debian/postinst
index
eab468e
..
2c4826f
100755
(executable)
--- a/
debian/postinst
+++ b/
debian/postinst
@@
-86,7
+86,7
@@
if dpkg --compare-versions "$2" lt 2.3.8-1; then
if echo $mydestination | grep -q ", \$mydomain"; then
mydestination="`echo $mydestination | sed 's/, \$mydomain//g'`"
fi
if echo $mydestination | grep -q ", \$mydomain"; then
mydestination="`echo $mydestination | sed 's/, \$mydomain//g'`"
fi
- if echo $mydestination | grep -q "localhost.\$mydomain"; then
+ if ! echo $mydestination | grep -q "localhost.\$mydomain"; then
mydestination="$mydestination, localhost.\$mydomain"
fi
postconf -e mydestination="$mydestination"
mydestination="$mydestination, localhost.\$mydomain"
fi
postconf -e mydestination="$mydestination"