From 6afd13463b9e1b21762626110157494a2b259f96 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Jul 24 2020 11:53:10 +0000 Subject: spec: Have the log directory owned by the main package It's now entirely reasonable for users to configure Pagure for extra logging, and Pagure would write log files to /var/log/pagure by default. Thus, we should just have it owned by the main package. Signed-off-by: Neal Gompa --- diff --git a/files/pagure.spec b/files/pagure.spec index 24fd5b3..8898f39 100644 --- a/files/pagure.spec +++ b/files/pagure.spec @@ -493,6 +493,7 @@ done %{_unitdir}/pagure_api_key_expire_mail.timer %{_unitdir}/pagure_mirror_project_in.service %{_unitdir}/pagure_mirror_project_in.timer +%dir %{_localstatedir}/log/pagure %files web-apache-httpd @@ -506,8 +507,8 @@ done %config(noreplace) %{_sysconfdir}/nginx/conf.d/pagure.conf %{_unitdir}/pagure_web.service %{_unitdir}/pagure_docs_web.service -%dir %{_localstatedir}/log/pagure -%ghost %{_localstatedir}/log/pagure/*.log +%ghost %{_localstatedir}/log/pagure/access_*.log +%ghost %{_localstatedir}/log/pagure/error_*.log %files theme-pagureio