- Move the post map rebuild script into the start script

OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=113
This commit is contained in:
Peter Varkoly 2011-12-13 14:51:10 +00:00 committed by Git OBS Bridge
parent 30094cd61d
commit 342228c432
3 changed files with 13 additions and 12 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e9fd8cd14fe07e7937e9a32335030cee07d6233b42d79a948825a84cad0fcbbc
size 24456
oid sha256:709f3538c1c2ddb71d987f648a46cdd60e39d5fcd7b97d115c511771eea133b5
size 24717

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Dec 13 14:50:45 UTC 2011 - varkoly@suse.com
- Move the post map rebuild script into the start script
-------------------------------------------------------------------
Tue Dec 6 11:04:12 UTC 2011 - varkoly@suse.com

View File

@ -303,6 +303,7 @@ mkdir -p %{buildroot}/lib/systemd/system
mkdir -p %{buildroot}/etc/postfix/system
install -m 0644 %{name}-SuSE/postfix.service %{buildroot}/lib/systemd/system/
install -m 0755 %{name}-SuSE/update_chroot.systemd %{buildroot}/etc/postfix/system/update_chroot
install -m 0755 %{name}-SuSE/rebuild_tables.systemd %{buildroot}/etc/postfix/system/rebuild_tables
install -m 0755 %{name}-SuSE/wait_qmgr.systemd %{buildroot}/etc/postfix/system/wait_qmgr
install -m 0755 %{name}-SuSE/cond_slp.systemd %{buildroot}/etc/postfix/system/cond_slp
%endif
@ -402,12 +403,6 @@ else
ln -s /usr/sbin/SuSEconfig.postfix /sbin/conf.d/SuSEconfig.postfix
fi
fi
for i in /etc/postfix/*db;
do
test -e "$i" || continue;
b=$( basename $i .db );
postmap /etc/postfix/$b;
done
# before fillup we need to fix something
[ \! -f %{_sysconfdir}/sysconfig/%{name} ] || %{__sed} -i \
-e "s/POSTFIX_SMTPD_SENDERNT_RESTRICTIONS/POSTFIX_SMTPD_SENDER_RESTRICTIONS/" \
@ -491,6 +486,7 @@ rm -rf $RPM_BUILD_ROOT
%if 0%{?suse_version} >= 1140
%dir /etc/postfix/system
%config %attr(0755,root,root) /etc/postfix/system/update_chroot
%config %attr(0755,root,root) /etc/postfix/system/rebuild_tables
%config %attr(0755,root,root) /etc/postfix/system/wait_qmgr
%config %attr(0755,root,root) /etc/postfix/system/cond_slp
%config /lib/systemd/system/postfix.service