From: Marcin Haba Date: Wed, 15 Jul 2015 18:45:11 +0000 (+0200) Subject: baculum: Update Spec file X-Git-Tag: Release-7.2.0~26 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c3d4f0c1055ab662b62d47b9684c900ea3db550a;p=bacula%2Fbacula baculum: Update Spec file --- diff --git a/gui/baculum/examples/rpm/baculum.spec b/gui/baculum/examples/rpm/baculum.spec index 69eae062ab..db7175ab7e 100644 --- a/gui/baculum/examples/rpm/baculum.spec +++ b/gui/baculum/examples/rpm/baculum.spec @@ -111,10 +111,10 @@ ln -s %{_localstatedir}/cache/%{name} %{buildroot}%{_datadir}/%{name}/htdocs/pr %post selinux if [ $1 -le 1 ] ; then - # Write access is possible for web servers user only to two directories - # - Data/ directory stores settings and web server HTTP Basic credentials - # - /var/cache/baculum - cache used by framework in specific locations (assets/ and protected/runtime/) - # by symbolic links to cache directory +# Write access is possible for web servers user only to two directories +# - Data/ directory stores settings and web server HTTP Basic credentials +# - /var/cache/baculum - cache used by framework in specific locations (assets/ and protected/runtime/) +# by symbolic links to cache directory semanage fcontext -a -t httpd_sys_rw_content_t '%{_datadir}/%{name}/htdocs/protected/Data(/.*)?' 2>/dev/null || : restorecon -i -R '%{_datadir}/%{name}/htdocs/protected/Data' || : semanage fcontext -a -t httpd_cache_t '%{_localstatedir}/cache/%{name}(/.*)?' 2>/dev/null || : @@ -162,14 +162,14 @@ fi # Apache logs are stored in /var/log/httpd/ %config %{_sysconfdir}/httpd/conf.d/%{name}.conf %attr(700,apache,apache) %{_localstatedir}/cache/%{name}/ -%attr(700,apache,apache) %{_datadir}/%{name}/htdocs/protected/Data/ +%attr(-,apache,apache) %{_datadir}/%{name}/htdocs/protected/Data/ %files lighttpd -%defattr(-,root,root) +%defattr(644,root,root) # Lighttpd logs are stored in /var/log/baculum %attr(750,lighttpd,lighttpd) %{_var}/log/%{name}/ %attr(700,lighttpd,lighttpd) %{_localstatedir}/cache/%{name}/ -%attr(700,lighttpd,lighttpd) %{_datadir}/%{name}/htdocs/protected/Data/ +%attr(-,lighttpd,lighttpd) %{_datadir}/%{name}/htdocs/protected/Data/ %{_unitdir}/%{name}-lighttpd.service %config %{_sysconfdir}/%{name}/%{name}-lighttpd.conf