From 371b276ab631c8d0f88f9387e6f31dffa7ad386a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 16 Apr 2018 21:59:55 +0300 Subject: [PATCH] run upgrade script as http user; keep config dir writable --- eventum.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eventum.spec b/eventum.spec index a68c506..409fab4 100644 --- a/eventum.spec +++ b/eventum.spec @@ -505,7 +505,7 @@ done # run database update if configured test -s %{_webappdir}/config.php && \ -%{_appdir}/bin/upgrade.php || : +runuser -u http -- %{_appdir}/bin/upgrade.php || : # nuke Smarty templates cache after upgrade rm -f /var/cache/eventum/*.php @@ -577,7 +577,7 @@ done %files -f %{name}.lang %defattr(644,root,root,755) -%attr(751,root,root) %dir %{_webappdir} +%attr(771,root,http) %dir %{_webappdir} %attr(751,root,http) %dir %{_webappdir}/crm %attr(751,root,http) %dir %{_webappdir}/custom_field %attr(751,root,http) %dir %{_webappdir}/partner -- 2.44.0