1
0

Accepting request 1000701 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/1000701
OBS-URL: https://build.opensuse.org/package/show/hardware/wpa_supplicant?expand=0&rev=139
This commit is contained in:
Clemens Famulla-Conrad 2022-09-06 08:30:42 +00:00 committed by Git OBS Bridge
parent 20be233a72
commit cb5a5701e1
2 changed files with 25 additions and 0 deletions

View File

@ -1,9 +1,20 @@
-------------------------------------------------------------------
Thu Sep 1 13:52:19 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.
-------------------------------------------------------------------
Tue Jul 5 11:29:50 UTC 2022 - Clemens Famulla-Conrad <cfamullaconrad@suse.com>
- Add dbus-Fix-property-DebugShowKeys-and-DebugTimestamp.patch
(bsc#1201219)
-------------------------------------------------------------------
Tue Jun 21 10:11:36 UTC 2022 - Stefan Schubert <schubi@suse.com>
- Removed %config flag for files in /usr directory.
-------------------------------------------------------------------
Tue Jun 21 07:29:22 UTC 2022 - Stefan Schubert <schubi@suse.com>

View File

@ -116,6 +116,20 @@ ln -s wpa_supplicant.service %{buildroot}%{_unitdir}/dbus-fi.w1.wpa_supplicant1.
%pre
%service_add_pre wpa_supplicant.service
%if 0%{?suse_version} > 1500
# Prepare for migration to /usr/etc; save any old .rpmsave
for i in logrotate.d/wpa_supplicant ; 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/wpa_supplicant ; do
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||:
done
%endif
%post
%service_add_post wpa_supplicant.service