From bd5328fe7fadc5c5740df3132c28d4a175232322 Mon Sep 17 00:00:00 2001 From: Sayan Paul Date: Tue, 2 Aug 2022 20:10:18 +0530 Subject: [PATCH] spec update to add conf during installation this fix will add greenboot.conf in /etc/greenboot/ folder this is required to enbale config management via osbuild signed off: Sayan Paul --- greenboot.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/greenboot.spec b/greenboot.spec index e894abb..185181b 100644 --- a/greenboot.spec +++ b/greenboot.spec @@ -76,6 +76,7 @@ install -DpZm 0644 usr/lib/systemd/system/*.service %{buildroot}%{_unitdir} install -DpZm 0644 usr/lib/tmpfiles.d/greenboot-status-motd.conf %{buildroot}%{_tmpfilesdir}/greenboot-status-motd.conf install -DpZm 0755 usr/lib/greenboot/check/required.d/* %{buildroot}%{_prefix}/lib/%{name}/check/required.d install -DpZm 0755 usr/lib/greenboot/check/wanted.d/* %{buildroot}%{_prefix}/lib/%{name}/check/wanted.d +install -DpZm 0644 etc/greenboot/greenboot.conf %{buildroot}%{_sysconfdir}/%{name}/greenboot.conf %post %systemd_post greenboot-healthcheck.service @@ -161,6 +162,7 @@ install -DpZm 0755 usr/lib/greenboot/check/wanted.d/* %{buildroot}%{_prefix}/lib %{_unitdir}/redboot-auto-reboot.service %{_libexecdir}/%{name}/greenboot-service-monitor %{_unitdir}/greenboot-service-monitor.service +%{_sysconfdir}/%{name}/greenboot.conf %files default-health-checks %{_prefix}/lib/%{name}/check/required.d/01_repository_dns_check.sh