From 10d0e50ca59ff32012b5c742a68846098fcba5a9 Mon Sep 17 00:00:00 2001 From: Link Dupont Date: Fri, 28 Jan 2022 14:35:15 -0500 Subject: [PATCH] Remove nonexistent systemd units Resolves: RHBZ#2024836 --- insights-client.spec | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/insights-client.spec b/insights-client.spec index 7ad4d94..9de2abb 100644 --- a/insights-client.spec +++ b/insights-client.spec @@ -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 - 3.1.7-2 +- Remove scriptlets referencing nonexistent files (RHBZ#2024836) + * Wed Oct 20 2021 Link Dupont - 3.1.7-1 - New upstream release (Resolves RHBZ#2013799) - Disable client metrics collection