2 |
--- e-smith-ibays-2.6.0.old/root/etc/e-smith/events/actions/ibay-modify 2016-06-23 02:57:56.838000000 -0400 |
--- e-smith-ibays-2.6.0.old/root/etc/e-smith/events/actions/ibay-modify 2016-06-23 02:57:56.838000000 -0400 |
3 |
+++ e-smith-ibays-2.6.0/root/etc/e-smith/events/actions/ibay-modify 2016-06-23 03:18:20.693000000 -0400 |
+++ e-smith-ibays-2.6.0/root/etc/e-smith/events/actions/ibay-modify 2016-06-23 03:18:20.693000000 -0400 |
4 |
@@ -163,6 +163,10 @@ |
@@ -163,6 +163,10 @@ |
5 |
$tmpdir = ('/home/e-smith/files/ibays/' . $ibay->key . '/tmp') if $tmpdir eq 'enabled'; |
$tmpdir = ('/var/cache/e-smith/files/ibays/' . $ibay->key . '/tmp') if $tmpdir eq 'enabled'; |
6 |
mkdir $tmpdir unless (-d $tmpdir || $tmpdir eq "disabled"); |
mkdir $tmpdir unless (-d $tmpdir || $tmpdir eq "disabled"); |
7 |
|
|
8 |
+my $sessdir = $ibay->prop('PHPSessionDir') || 'enabled'; |
+my $sessdir = $ibay->prop('PHPSessionDir') || 'enabled'; |
9 |
+$sessdir = ('/home/e-smith/files/ibays/' . $ibay->key . '/session') if $sessdir eq 'enabled'; |
+$sessdir = ('/var/cache/e-smith/files/ibays/' . $ibay->key . '/session') if $sessdir eq 'enabled'; |
10 |
+mkdir $sessdir unless (-d $sessdir || $sessdir eq "disabled"); |
+mkdir $sessdir unless (-d $sessdir || $sessdir eq "disabled"); |
11 |
+ |
+ |
12 |
chdir "/home/e-smith/files/ibays/$ibayName" |
chdir "/home/e-smith/files/ibays/$ibayName" |
17 |
system ('/bin/chmod' ,'-R', '0700' , $tmpdirperm ); |
system ('/bin/chmod' ,'-R', '0700' , $tmpdirperm ); |
18 |
} |
} |
19 |
+ ##chmod 0700 ; chown www:www if session folder exists |
+ ##chmod 0700 ; chown www:www if session folder exists |
20 |
+ my $sessdirperm = (('/home/e-smith/files/ibays/' . $ibay->key . '/session')||''); |
+ my $sessdirperm = (('/var/cache/e-smith/files/ibays/' . $ibay->key . '/session')||''); |
21 |
+ if ( -d $sessdirperm) |
+ if ( -d $sessdirperm) |
22 |
+ { |
+ { |
23 |
+ system ('/bin/chown', '-R', 'www:www' , $sessdirperm); |
+ system ('/bin/chown', '-R', 'www:www' , $sessdirperm); |
34 |
my $key = $ibay->key; |
my $key = $ibay->key; |
35 |
my $tmpdb = $ibay->prop('PHPTmpDir') || 'enabled'; |
my $tmpdb = $ibay->prop('PHPTmpDir') || 'enabled'; |
36 |
+ my $sessiondb = $ibay->prop('PHPSessionDir') || 'enabled'; |
+ my $sessiondb = $ibay->prop('PHPSessionDir') || 'enabled'; |
37 |
my $path = (('/home/e-smith/files/ibays/') . $key . '/tmp'); |
my $path = (('/var/cache/e-smith/files/ibays/') . $key . '/tmp'); |
38 |
|
|
39 |
#we test the condition if /tmp exists or if it is disabled in the Ibay |
#we test the condition if /tmp exists or if it is disabled in the Ibay |
40 |
@@ -79,6 +80,12 @@ |
@@ -79,6 +80,12 @@ |
50 |
} |
} |
51 |
} |
} |
52 |
|
|
|
diff -Nur e-smith-ibays-2.6.0.old/root/etc/e-smith/skel/ibay/session/.cvs_ignore e-smith-ibays-2.6.0/root/etc/e-smith/skel/ibay/session/.cvs_ignore |
|
|
--- e-smith-ibays-2.6.0.old/root/etc/e-smith/skel/ibay/session/.cvs_ignore 1969-12-31 19:00:00.000000000 -0500 |
|
|
+++ e-smith-ibays-2.6.0/root/etc/e-smith/skel/ibay/session/.cvs_ignore 2016-06-23 02:57:56.838000000 -0400 |
|
|
@@ -0,0 +1 @@ |
|
|
+#added to create the /etc/e-smith/skel/ibay/tmp folder |
|