From d10c7ed424e20c4254b83b7394cb3baac8f5b4e3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 11 Dec 2007 16:24:28 +0000 Subject: [PATCH] - it startups fine without implicit myhostname in main.cf; rel 4 Changed files: postfix.spec -> 1.306 --- postfix.spec | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/postfix.spec b/postfix.spec index 85c9ce2..0f11b46 100644 --- a/postfix.spec +++ b/postfix.spec @@ -10,6 +10,7 @@ %bcond_with hir # with Beeth's header_if_reject patch %bcond_with tcp # with unofficial tcp: lookup table # +%define vda_ver 2.4.5 Summary: Postfix Mail Transport Agent Summary(cs.UTF-8): Postfix - program pro přepravu pošty (MTA) Summary(es.UTF-8): Postfix - Un MTA (Mail Transport Agent) de alto desempeño @@ -19,8 +20,7 @@ Summary(pt_BR.UTF-8): Postfix - Um MTA (Mail Transport Agent) de alto desempenho Summary(sk.UTF-8): Agent prenosu pošty Postfix Name: postfix Version: 2.4.6 -%define vda_ver 2.4.5 -Release: 3 +Release: 4 Epoch: 2 License: distributable Group: Networking/Daemons @@ -337,12 +337,7 @@ if ! grep -q "^postmaster:" %{_sysconfdir}/mail/aliases; then echo "Adding Entry for postmaster in %{_sysconfdir}/mail/aliases" >&2 echo "postmaster: root" >>%{_sysconfdir}/mail/aliases fi -if [ "$1" = "1" ]; then - # only on installation, not upgrade - if ! grep -q "^myhostname" %{_sysconfdir}/mail/main.cf; then - postconf -e myhostname=`/bin/hostname -f` - fi -else +if [ "$1" -gt "1" ]; then postfix upgrade-configuration fi -- 2.44.0