[packages/eventum: 10/14] run upgrade script as http user; keep config dir writable
glen
glen at pld-linux.org
Mon Apr 23 19:13:48 CEST 2018
commit 371b276ab631c8d0f88f9387e6f31dffa7ad386a
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Apr 16 21:59:55 2018 +0300
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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/eventum.git/commitdiff/9d6970def274564d9784c213b268e07cf4aef1de
More information about the pld-cvs-commit
mailing list