--- rpms/smeserver-git/contribs9/smeserver-git.spec 2016/06/11 18:53:22 1.5 +++ rpms/smeserver-git/contribs9/smeserver-git.spec 2016/06/22 17:34:22 1.6 @@ -1,6 +1,6 @@ %define name smeserver-git %define version 1.1.0 -%define release 4 +%define release 5 Summary: Centralised Git repositories with setup and configuration through SME Server admin panels. Name: %{name} Version: %{version} @@ -20,6 +20,8 @@ AutoReqProv: no Patch1: smeserver-git-1.1.0-fix_missing_group_modify_event_check.patch Patch2: smeserver-git-1.1.0-rewriterules_for_dot_git.patch Patch3: smeserver-git-1.1.0-LocationMatch.patch +Patch4: smeserver-git-1.1.0-db_permissions.patch + %description smeserver-git enables centralised git repositories on an SME server and enables @@ -30,6 +32,9 @@ installs and enables the git server on t host.com/git. Repositories are then available as https://host.com/git/gitrepo.git. %changelog +* Wed Jun 22 2016 Jean-Philipe Pialasse 1.1.0-5.sme +- fix too permissive permissions on db accounts networks and git [SME: 9615] [SME: 9616] + * Sat Jun 11 2016 Jean-Philipe Pialasse 1.1.0-4.sme - commented out back the rewrite rule on HEAD etc to allow CLI git - fix auth not asked with Location after RewriteRule [SME: 9202] @@ -103,6 +108,7 @@ host.com/git. Repositories are then avai %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 mkdir -p root/home/e-smith/files/git/ %build @@ -132,7 +138,7 @@ if [ $1 -eq 1 ] ; then /etc/e-smith/events/actions/navigation-conf fi echo " - Ensuring git repositories configuration database has the right permissions ..." -chmod 664 /home/e-smith/db/git +chmod 660 /home/e-smith/db/git chown admin:www /home/e-smith/files/git /etc/rc7.d/S86httpd-e-smith sighup echo "---------------------------------------------------------"