Remove nonexistent systemd units
Resolves: RHBZ#2024836
This commit is contained in:
parent
48b32102fe
commit
10d0e50ca5
@ -3,7 +3,7 @@
|
||||
Name: insights-client
|
||||
Summary: Uploads Insights information to Red Hat on a periodic basis
|
||||
Version: 3.1.7
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Source0: https://github.com/RedHatInsights/insights-client/releases/download/v%{version}/insights-client-%{version}.tar.gz
|
||||
Epoch: 0
|
||||
License: GPLv2+
|
||||
@ -67,28 +67,18 @@ if [ -d %{_sysconfdir}/motd.d ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
%systemd_post insights-register.path
|
||||
%systemd_post insights-unregister.path
|
||||
%systemd_post 80-insights.preset
|
||||
|
||||
|
||||
%preun
|
||||
%systemd_preun %{name}.timer
|
||||
%systemd_preun %{name}.service
|
||||
%systemd_preun insights-register.path
|
||||
%systemd_preun insights-unregister.path
|
||||
%systemd_preun %{name}-boot.service
|
||||
|
||||
%postun
|
||||
%systemd_postun %{name}.timer
|
||||
%systemd_postun %{name}.service
|
||||
%systemd_postun insights-register.path
|
||||
%systemd_postun insights-unregister.path
|
||||
%systemd_postun %{name}-boot.service
|
||||
|
||||
# Clean up files created by insights-client that are unowned by the RPM
|
||||
if [ $1 -eq 0 ]; then
|
||||
systemctl unmask insights-register.path
|
||||
rm -f %{_sysconfdir}/cron.daily/insights-client
|
||||
rm -f %{_sysconfdir}/ansible/facts.d/insights.fact
|
||||
rm -f %{_sysconfdir}/ansible/facts.d/insights_machine_id.fact
|
||||
@ -125,6 +115,9 @@ rm -rf %{buildroot}
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jan 28 2022 Link Dupont <link@redhat.com> - 3.1.7-2
|
||||
- Remove scriptlets referencing nonexistent files (RHBZ#2024836)
|
||||
|
||||
* Wed Oct 20 2021 Link Dupont <link@redhat.com> - 3.1.7-1
|
||||
- New upstream release (Resolves RHBZ#2013799)
|
||||
- Disable client metrics collection
|
||||
|
||||
Loading…
Reference in New Issue
Block a user