]> git.pld-linux.org Git - packages/eventum.git/commitdiff
run upgrade script as http user; keep config dir writable
authorElan Ruusamäe <glen@delfi.ee>
Mon, 16 Apr 2018 18:59:55 +0000 (21:59 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 16 Apr 2018 19:00:49 +0000 (22:00 +0300)
eventum.spec

index a68c506803348af791d6871a8108586b10d3cbcd..409fab4aaffa2f8523324182f6b8b426388c44cc 100644 (file)
@@ -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
This page took 0.069369 seconds and 4 git commands to generate.