Skip to content

Commit

Permalink
spec update to add conf during installation
Browse files Browse the repository at this point in the history
this fix will add greenboot.conf in /etc/greenboot/ folder
this is required to enbale config management via osbuild

signed off: Sayan Paul <paul.sayan@gmail.com>
  • Loading branch information
say-paul authored and nullr0ute committed Aug 2, 2022
1 parent 941888b commit bd5328f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions greenboot.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bd5328f

Please sign in to comment.