1 |
stephdl |
1.1 |
diff -Nur e-smith-ibays-2.4.0.old7011/root/etc/e-smith/skel/ibay/tmp/.cvs_ignore e-smith-ibays-2.4.0/root/etc/e-smith/skel/ibay/tmp/.cvs_ignore |
2 |
|
|
--- e-smith-ibays-2.4.0.old7011/root/etc/e-smith/skel/ibay/tmp/.cvs_ignore 1970-01-01 01:00:00.000000000 +0100 |
3 |
|
|
+++ e-smith-ibays-2.4.0/root/etc/e-smith/skel/ibay/tmp/.cvs_ignore 2014-05-04 14:46:42.497540282 +0200 |
4 |
|
|
@@ -0,0 +1 @@ |
5 |
|
|
+#added to create the /etc/e-smith/skel/ibay/tmp folder |
6 |
|
|
diff -Nur e-smith-ibays-2.4.0.old/root/etc/e-smith/events/actions/ibay-modify e-smith-ibays-2.4.0/root/etc/e-smith/events/actions/ibay-modify |
7 |
|
|
--- e-smith-ibays-2.4.0.old/root/etc/e-smith/events/actions/ibay-modify 2014-03-22 18:05:25.531733369 +0100 |
8 |
|
|
+++ e-smith-ibays-2.4.0/root/etc/e-smith/events/actions/ibay-modify 2014-03-23 10:32:16.403155934 +0100 |
9 |
|
|
@@ -158,6 +158,10 @@ |
10 |
|
|
#-------------------------------------------------- |
11 |
|
|
# main directory is writeable only by root |
12 |
|
|
#-------------------------------------------------- |
13 |
|
|
+##create the upload_tmp_folder in the ibay if PHPTmpDir is set to 'enabled' |
14 |
|
|
+my $tmpdir = $ibay->prop('PHPTmpDir') || 'enabled'; |
15 |
|
|
+$tmpdir = ('/home/e-smith/files/ibays/' . $ibay->key . '/tmp') if $tmpdir eq 'enabled'; |
16 |
|
|
+mkdir $tmpdir unless (-d $tmpdir || $tmpdir eq "disabled"); |
17 |
|
|
|
18 |
|
|
chdir "/home/e-smith/files/ibays/$ibayName" |
19 |
|
|
or ( $x = 255, warn "Could not chdir to /home/e-smith/files/ibays/$ibayName" ); |
20 |
|
|
@@ -227,6 +231,13 @@ |
21 |
|
|
$experm |= $::fileperm; |
22 |
|
|
chmod $experm, $_; |
23 |
|
|
} |
24 |
|
|
+ ##chmod 0700 ; chown www:www if upload_tmp_folder exists |
25 |
|
|
+ my $tmpdirperm = (('/home/e-smith/files/ibays/' . $ibay->key . '/tmp')||''); |
26 |
|
|
+ if ( -d $tmpdirperm) |
27 |
|
|
+ { |
28 |
|
|
+ system ('/bin/chown', '-R', 'www:www' , $tmpdirperm); |
29 |
|
|
+ system ('/bin/chmod' ,'-R', '0700' , $tmpdirperm ); |
30 |
|
|
+ } |
31 |
|
|
} |
32 |
|
|
} |
33 |
|
|
|