/[smecontribs]/rpms/smeserver-git/contribs9/smeserver-git-1.1.0-db_permissions.patch
ViewVC logotype

Annotation of /rpms/smeserver-git/contribs9/smeserver-git-1.1.0-db_permissions.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Fri Jun 24 10:27:11 2016 UTC (7 years, 11 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-git-1_1_0-7_el6_sme
Changes since 1.2: +0 -12 lines
* Fri Jun 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-7.sme
- removing fragment migrate as it should not be used for that [SME: 9619]

1 unnilennium 1.1 diff -Nur smeserver-git-1.1.0.old/root/etc/e-smith/events/actions/git-repository-create-modify smeserver-git-1.1.0/root/etc/e-smith/events/actions/git-repository-create-modify
2     --- smeserver-git-1.1.0.old/root/etc/e-smith/events/actions/git-repository-create-modify 2014-05-27 01:47:30.000000000 -0400
3     +++ smeserver-git-1.1.0/root/etc/e-smith/events/actions/git-repository-create-modify 2016-06-22 13:27:00.316000000 -0400
4     @@ -162,9 +162,9 @@
5     chmod 02770, ".";
6    
7     # Ensure that the git repository database is readable by the web server.
8     -system("/bin/chmod", "644", "/home/e-smith/db/git") == 0
9     +system("/bin/chmod", "640", "/home/e-smith/db/git") == 0
10     or die "Could not change permissions on /home/e-smith/db/git";
11    
12     -# Ensure that the networks database is readable by the web server.
13     -system("/bin/chmod", "644", "/home/e-smith/db/networks") == 0
14     - or die "Could not change permissions on /home/e-smith/db/networks";
15     +system("/bin/chown", "root:www", "/home/e-smith/db/git") == 0
16     + or die "Could not change ownership on /home/e-smith/db/git";
17     +
18     diff -Nur smeserver-git-1.1.0.old/root/etc/e-smith/events/actions/git-repository-delete smeserver-git-1.1.0/root/etc/e-smith/events/actions/git-repository-delete
19     --- smeserver-git-1.1.0.old/root/etc/e-smith/events/actions/git-repository-delete 2013-04-21 12:28:06.000000000 -0400
20     +++ smeserver-git-1.1.0/root/etc/e-smith/events/actions/git-repository-delete 2016-06-22 13:25:42.667000000 -0400
21     @@ -84,10 +84,9 @@
22     #------------------------------------------------------------
23    
24     # Ensure that the git repository database is readable by the web server.
25     -system("/bin/chmod", "644", "/home/e-smith/db/git") == 0
26     +system("/bin/chmod", "640", "/home/e-smith/db/git") == 0
27     or die "Could not change permissions on /home/e-smith/db/git";
28    
29     -# Ensure that the networks database is readable by the web server.
30     -system("/bin/chmod", "644", "/home/e-smith/db/networks") == 0
31     - or die "Could not change permissions on /home/e-smith/db/networks";
32     +system("/bin/chown", "root:www", "/home/e-smith/db/git") == 0
33     + or die "Could not change ownership on /home/e-smith/db/git";
34    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed