diff --git a/SOURCES/0001-fix-remove-PathExists-condition-from-unit.patch b/SOURCES/0001-fix-remove-PathExists-condition-from-unit.patch
new file mode 100644
index 0000000..7698e4e
--- /dev/null
+++ b/SOURCES/0001-fix-remove-PathExists-condition-from-unit.patch
@@ -0,0 +1,28 @@
+From ec3502eaef144838bec85dfed497de7a404a66bf Mon Sep 17 00:00:00 2001
+From: Link Dupont
+Date: Mon, 31 Jan 2022 10:53:04 -0500
+Subject: [PATCH] fix: remove PathExists condition from unit
+
+The PathExists= directive in the Path section of the
+insights-client-results.path unit is unnecessary.
+
+Fixes: RHBZ#2022191
+---
+ data/systemd/insights-client-results.path.in | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/data/systemd/insights-client-results.path.in b/data/systemd/insights-client-results.path.in
+index be53998..928296b 100644
+--- a/data/systemd/insights-client-results.path.in
++++ b/data/systemd/insights-client-results.path.in
+@@ -13,7 +13,6 @@ Documentation=man:insights-client(8)
+ PartOf=insights-client.timer
+
+ [Path]
+-PathExists=@pkgsysconfdir@/.lastupload
+ PathModified=@pkgsysconfdir@/.lastupload
+
+ [Install]
+--
+2.34.1
+
diff --git a/SPECS/insights-client.spec b/SPECS/insights-client.spec
index 7ad4d94..c11c9c4 100644
--- a/SPECS/insights-client.spec
+++ b/SPECS/insights-client.spec
@@ -3,14 +3,16 @@
Name: insights-client
Summary: Uploads Insights information to Red Hat on a periodic basis
Version: 3.1.7
-Release: 1%{?dist}
+Release: 5%{?dist}
Source0: https://github.com/RedHatInsights/insights-client/releases/download/v%{version}/insights-client-%{version}.tar.gz
Epoch: 0
License: GPLv2+
-URL: http://cloud.redhat.com/insights
+URL: https://console.redhat.com/insights
Group: Applications/System
Vendor: Red Hat, Inc.
+Patch0: 0001-fix-remove-PathExists-condition-from-unit.patch
+
Provides: redhat-access-insights = %{version}-%{release}%{?dist}
Obsoletes: redhat-access-insights <= 1.0.13-2
@@ -67,28 +69,20 @@ 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 +119,18 @@ rm -rf %{buildroot}
%changelog
+* Wed Feb 16 2022 Gaël Chamoulaud - 3.1.7-5
+- Restore insights-client-boot.service preun/postun (RHBZ#2024836)
+
+* Wed Feb 02 2022 Gaël Chamoulaud - 3.1.7-4
+- Renaming "cloud.redhat.com" to "console.redhat.com" (RHBZ#2013799)
+
+* Mon Jan 31 2022 Link Dupont - 3.1.7-3
+- Patch to fix an issue where insights-client continuously launches (RHBZ#2022191)
+
+* 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