From 55440d5d9d831151bca1534aa61369eee14e0f24 Mon Sep 17 00:00:00 2001 From: Ivan Rako Date: Thu, 27 Dec 2007 13:00:05 +0000 Subject: [PATCH] r13: --- debian/changelog | 6 ++++++ debian/postinst | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index d36b0a2..4037e6b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +postfix-cn (2.3.8-2) stable; urgency=medium + + * Sitne ispravke u postinstu + + -- Ivan Rako Thu, 27 Dec 2007 13:45:34 +0100 + postfix-cn (2.3.8-1) stable; urgency=high * Prva verzija za Etch diff --git a/debian/postinst b/debian/postinst index 2c4826f..89bb37e 100755 --- a/debian/postinst +++ b/debian/postinst @@ -81,7 +81,7 @@ postconf -e mynetworks="$mynetworks" # obrisati $mydomain, ako je upgrade sa starije verzije # te srediti mydestination -if dpkg --compare-versions "$2" lt 2.3.8-1; then +if dpkg --compare-versions "$2" lt 2.3.8-2; then mydestination="`postconf -h mydestination`" if echo $mydestination | grep -q ", \$mydomain"; then mydestination="`echo $mydestination | sed 's/, \$mydomain//g'`" @@ -89,6 +89,9 @@ if dpkg --compare-versions "$2" lt 2.3.8-1; then if ! echo $mydestination | grep -q "localhost.\$mydomain"; then mydestination="$mydestination, localhost.\$mydomain" fi + if ! echo $mydestination | grep -q "\$myhostname"; then + mydestination="\$myhostname, $mydestination" + fi postconf -e mydestination="$mydestination" fi -- 1.7.10.4