SHA256
1
0
forked from pool/postfix

- 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
This commit is contained in:
Peter Varkoly 2017-10-20 12:32:34 +00:00 committed by Git OBS Bridge
parent af685a8a5f
commit 2c4f575ffd
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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