1 |
diff -Nur smeserver-shared-folders-0.1/root/etc/e-smith/events/actions/share-modify smeserver-shared-folders-0.1_mod/root/etc/e-smith/events/actions/share-modify |
2 |
--- smeserver-shared-folders-0.1/root/etc/e-smith/events/actions/share-modify 2010-12-15 08:46:06.000000000 +0100 |
3 |
+++ smeserver-shared-folders-0.1_mod/root/etc/e-smith/events/actions/share-modify 2010-12-15 12:48:19.000000000 +0100 |
4 |
@@ -79,8 +79,10 @@ |
5 |
chdir "/home/e-smith/files/shares/$shareName" |
6 |
or die "Could not chdir to /home/e-smith/files/shares/$shareName"; |
7 |
|
8 |
+my $http = $share->prop('httpAccess') || 'none'; |
9 |
+my $groupowner = ($http eq 'none') ? 'root' : 'www'; |
10 |
|
11 |
-esmith::util::chownFile("root", "root", "."); |
12 |
+esmith::util::chownFile("root", "$groupowner", "."); |
13 |
chmod 0750, "."; |
14 |
|
15 |
#-------------------------------------------------- |