Redo preset call on upgrades

The preset was changed to 'enable', as part of
https://fedoraproject.org/wiki/Changes/EnableFwupdRefreshByDefault
(see https://bugzilla.redhat.com/show_bug.cgi?id=2236498).

To update existing systems on installations, this adds a trigger
scriptlet that will fire when upgrading from older releases to F39
or F40.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2023-09-28 19:43:17 +02:00
parent afbf0ce3ef
commit e3d0c7d03a

View File

@ -275,6 +275,10 @@ done
%postun
%systemd_postun_with_restart fwupd.service fwupd-refresh.timer
%triggerun -- fedora-release-common < 39-0.28
# For upgrades from versions before fwupd-refresh.timer was enabled by default
systemctl --no-reload preset fwupd-refresh.timer &>/dev/null || :
%files -f %{name}.lang
%doc README.md
%license COPYING