From a28261706e90bbfc39c9e4215b4b3745a6903658 Mon Sep 17 00:00:00 2001 From: Petr Stodulka Date: Tue, 22 Oct 2019 14:36:44 +0200 Subject: [PATCH] Packaging: Add /var/log/leapp into the leapp rpm 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. --- packaging/leapp.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packaging/leapp.spec b/packaging/leapp.spec index 86ebaa120..4f9a57083 100644 --- a/packaging/leapp.spec +++ b/packaging/leapp.spec @@ -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 @@ -222,6 +224,7 @@ rm -f %{buildroot}/%{_bindir}/leapp %dir %{_sysconfdir}/leapp/repos.d %{_bindir}/leapp %dir %{_sharedstatedir}/leapp +%dir %{_localstatedir}/log/leapp %endif