Skip to content

Commit

Permalink
Packaging: Add /var/log/leapp into the leapp rpm
Browse files Browse the repository at this point in the history
We've got feedback that this file is needed for purposes of possible
frontends (e.g. in cockpit). To not put obstacles here, adding
the directory into the rpm, so it will exist always.
  • Loading branch information
pirat89 authored and vinzenz committed Oct 23, 2019
1 parent 03902ca commit a282617
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packaging/leapp.spec
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ install -m 0600 -d %{buildroot}%{_sysconfdir}/leapp/answers
# standard directory should have permission set to 0755, however this directory
# could contain sensitive data, hence permission for root only
install -m 0700 -d %{buildroot}%{_sysconfdir}/leapp/answers
# same for this dir; we need it for the frontend in cockpit
install -m 0700 -d %{buildroot}%{_localstatedir}/log/leapp
install -m 0644 etc/leapp/*.conf %{buildroot}%{_sysconfdir}/leapp
install -m 0644 -p man/leapp.1 %{buildroot}%{_mandir}/man1/
%endif # !fedora
Expand Down Expand Up @@ -222,6 +224,7 @@ rm -f %{buildroot}/%{_bindir}/leapp
%dir %{_sysconfdir}/leapp/repos.d
%{_bindir}/leapp
%dir %{_sharedstatedir}/leapp
%dir %{_localstatedir}/log/leapp
%endif


Expand Down

0 comments on commit a282617

Please sign in to comment.