Accepting request 1000599 from home:schubi2

- Migration to /usr/etc: Saving user changed configuration files
  in /etc and restoring them while an RPM update.

OBS-URL: https://build.opensuse.org/request/show/1000599
OBS-URL: https://build.opensuse.org/package/show/server:mail/exim?expand=0&rev=264
This commit is contained in:
Peter Wullinger 2022-09-07 06:59:43 +00:00 committed by Git OBS Bridge
parent bb32cd54e8
commit 390576486d
2 changed files with 20 additions and 0 deletions

View File

@ -3,6 +3,12 @@ Tue Sep 6 09:19:57 UTC 2022 - Ludwig Nussel <lnussel@suse.de>
- Own /var/spool/mail (boo#1179574)
-------------------------------------------------------------------
Thu Sep 1 07:43:11 UTC 2022 - Stefan Schubert <schubi@suse.com>
- Migration to /usr/etc: Saving user changed configuration files
in /etc and restoring them while an RPM update.
-------------------------------------------------------------------
Wed Jun 29 14:20:50 UTC 2022 - Stefan Schubert <schubi@suse.com>

View File

@ -414,6 +414,20 @@ end
%if 0%{?suse_version} > 1220
%service_add_pre exim.service
%endif
%if 0%{?suse_version} > 1500
# Prepare for migration to /usr/etc; save any old .rpmsave
for i in logrotate.d/exim ; do
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i}.rpmsave.old ||:
done
%endif
%if 0%{?suse_version} > 1500
%posttrans
# Migration to /usr/etc, restore just created .rpmsave
for i in logrotate.d/exim ; do
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||:
done
%endif
%post
%if 0%{?suse_version} < 1131