From 2c4f575ffdc9619ae2430d1dfcb439900ecc649f7224312358aabc602aea17a1 Mon Sep 17 00:00:00 2001 From: Peter Varkoly Date: Fri, 20 Oct 2017 12:32:34 +0000 Subject: [PATCH] - bnc#1059512 L3: Postfix Problem The applied changes breaks existing postfix configurations because daemon_directory was not adapted to the new value. OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=282 --- postfix.changes | 8 ++++++++ postfix.spec | 3 +++ 2 files changed, 11 insertions(+) diff --git a/postfix.changes b/postfix.changes index 18cfcc3..39a90d4 100644 --- a/postfix.changes +++ b/postfix.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Oct 20 12:27:12 UTC 2017 - varkoly@suse.com + +- bnc#1059512 L3: Postfix Problem + The applied changes breaks existing postfix configurations because + daemon_directory was not adapted to the new value. + + ------------------------------------------------------------------- Sun Oct 15 22:47:29 UTC 2017 - chris@computersalat.de diff --git a/postfix.spec b/postfix.spec index f52baf4..e2caa82 100644 --- a/postfix.spec +++ b/postfix.spec @@ -506,6 +506,9 @@ if [ ${1:-0} -gt 1 ]; then fi echo "Executing upgrade-configuration." %{_sbindir}/postfix set-permissions upgrade-configuration setgid_group=%{pf_setgid_group} || : + if [ "$(/usr/sbin/postconf -h daemon_directory)" != "%{pf_daemon_directory}" ]; then + /usr/sbin/postconf daemon_directory=%{pf_daemon_directory} + fi if [ $MASTERCH -eq 0 ]; then test -e %{_localstatedir}/adm/SuSEconfig/md5%{_sysconfdir}/postfix/master.cf && grep -v "^#" %{_sysconfdir}/postfix/master.cf | md5sum > %{_localstatedir}/adm/SuSEconfig/md5%{_sysconfdir}/postfix/master.cf fi