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 |
|