/[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.2 - (hide annotations) (download)
Thu Jun 23 03:36:42 2016 UTC (7 years, 11 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-git-1_1_0-6_el6_sme
Changes since 1.1: +5 -4 lines
* Wed Jun 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-6.sme
- fix missing ; in migrate fragment 80git to revert db  permissions [SME: 9619]

1 unnilennium 1.1 diff -Nur smeserver-git-1.1.0.old/root/etc/e-smith/db/configuration/migrate/80git smeserver-git-1.1.0/root/etc/e-smith/db/configuration/migrate/80git
2     --- smeserver-git-1.1.0.old/root/etc/e-smith/db/configuration/migrate/80git 1969-12-31 19:00:00.000000000 -0500
3     +++ smeserver-git-1.1.0/root/etc/e-smith/db/configuration/migrate/80git 2016-06-22 13:30:53.245000000 -0400
4 unnilennium 1.2 @@ -0,0 +1,8 @@
5 unnilennium 1.1 +{
6     +
7 unnilennium 1.2 +system("/bin/chmod", "640", "/home/e-smith/db/networks");
8     +system("/bin/chmod", "640", "/home/e-smith/db/accounts");
9     +system("/bin/chmod", "640", "/home/e-smith/db/git");
10     +system("/bin/chown", "root:www", "/home/e-smith/db/git");
11 unnilennium 1.1 +
12     +}
13     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
14     --- smeserver-git-1.1.0.old/root/etc/e-smith/events/actions/git-repository-create-modify 2014-05-27 01:47:30.000000000 -0400
15     +++ smeserver-git-1.1.0/root/etc/e-smith/events/actions/git-repository-create-modify 2016-06-22 13:27:00.316000000 -0400
16     @@ -162,9 +162,9 @@
17     chmod 02770, ".";
18    
19     # Ensure that the git repository database is readable by the web server.
20     -system("/bin/chmod", "644", "/home/e-smith/db/git") == 0
21     +system("/bin/chmod", "640", "/home/e-smith/db/git") == 0
22     or die "Could not change permissions on /home/e-smith/db/git";
23    
24     -# Ensure that the networks database is readable by the web server.
25     -system("/bin/chmod", "644", "/home/e-smith/db/networks") == 0
26     - or die "Could not change permissions on /home/e-smith/db/networks";
27     +system("/bin/chown", "root:www", "/home/e-smith/db/git") == 0
28     + or die "Could not change ownership on /home/e-smith/db/git";
29     +
30     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
31     --- smeserver-git-1.1.0.old/root/etc/e-smith/events/actions/git-repository-delete 2013-04-21 12:28:06.000000000 -0400
32     +++ smeserver-git-1.1.0/root/etc/e-smith/events/actions/git-repository-delete 2016-06-22 13:25:42.667000000 -0400
33     @@ -84,10 +84,9 @@
34     #------------------------------------------------------------
35    
36     # Ensure that the git repository database is readable by the web server.
37     -system("/bin/chmod", "644", "/home/e-smith/db/git") == 0
38     +system("/bin/chmod", "640", "/home/e-smith/db/git") == 0
39     or die "Could not change permissions on /home/e-smith/db/git";
40    
41     -# Ensure that the networks database is readable by the web server.
42     -system("/bin/chmod", "644", "/home/e-smith/db/networks") == 0
43     - or die "Could not change permissions on /home/e-smith/db/networks";
44     +system("/bin/chown", "root:www", "/home/e-smith/db/git") == 0
45     + or die "Could not change ownership on /home/e-smith/db/git";
46    

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