X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=postfix-cn.git;a=blobdiff_plain;f=debian%2Fpostinst;h=2c4826f23b246eb9310c6151f6cfe831b1d5a012;hp=eab468ef32771e3a02ce8d46abc68fa057188a9a;hb=2d2c3f3aa7012f140848ef3783098096bfe26e59;hpb=cbcf1f8c46e6a17e1b5b447cf896379c5b87f6d4 diff --git a/debian/postinst b/debian/postinst index eab468e..2c4826f 100755 --- 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 "localhost.\$mydomain"; then + if ! echo $mydestination | grep -q "localhost.\$mydomain"; then mydestination="$mydestination, localhost.\$mydomain" fi postconf -e mydestination="$mydestination"