trivial: Ensure old ODM remotes are fixed on upgrade

This commit is contained in:
Richard Hughes 2020-11-27 09:24:21 +00:00
parent 9ba348cd7a
commit d1f901a012

View File

@ -269,6 +269,11 @@ mkdir -p --mode=0700 $RPM_BUILD_ROOT%{_localstatedir}/lib/fwupd/gnupg
%post
%systemd_post fwupd.service
# change vendor-installed remotes to use the default keyring type
for fn in /etc/fwupd/remotes.d/*.conf;
do sed -i 's/Keyring=gpg/#Keyring=pkcs/g' "$fn";
done
%preun
%systemd_preun fwupd.service