--- rpms/e-smith-ibays/sme10/e-smith-ibays-2.6.0-create_sess_folder_in_ibays.patch 2016/06/23 07:27:20 1.1 +++ rpms/e-smith-ibays/sme10/e-smith-ibays-2.6.0-create_sess_folder_in_ibays.patch 2016/06/26 16:30:04 1.2 @@ -2,11 +2,11 @@ diff -Nur e-smith-ibays-2.6.0.old/root/e --- 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/root/etc/e-smith/events/actions/ibay-modify 2016-06-23 03:18:20.693000000 -0400 @@ -163,6 +163,10 @@ - $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'; mkdir $tmpdir unless (-d $tmpdir || $tmpdir eq "disabled"); +my $sessdir = $ibay->prop('PHPSessionDir') || 'enabled'; -+$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'; +mkdir $sessdir unless (-d $sessdir || $sessdir eq "disabled"); + chdir "/home/e-smith/files/ibays/$ibayName" @@ -17,7 +17,7 @@ diff -Nur e-smith-ibays-2.6.0.old/root/e system ('/bin/chmod' ,'-R', '0700' , $tmpdirperm ); } + ##chmod 0700 ; chown www:www if session folder exists -+ my $sessdirperm = (('/home/e-smith/files/ibays/' . $ibay->key . '/session')||''); ++ my $sessdirperm = (('/var/cache/e-smith/files/ibays/' . $ibay->key . '/session')||''); + if ( -d $sessdirperm) + { + system ('/bin/chown', '-R', 'www:www' , $sessdirperm); @@ -34,7 +34,7 @@ diff -Nur e-smith-ibays-2.6.0.old/root/e my $key = $ibay->key; my $tmpdb = $ibay->prop('PHPTmpDir') || 'enabled'; + my $sessiondb = $ibay->prop('PHPSessionDir') || 'enabled'; - my $path = (('/home/e-smith/files/ibays/') . $key . '/tmp'); + my $path = (('/var/cache/e-smith/files/ibays/') . $key . '/tmp'); #we test the condition if /tmp exists or if it is disabled in the Ibay @@ -79,6 +80,12 @@ @@ -50,8 +50,3 @@ diff -Nur e-smith-ibays-2.6.0.old/root/e } } -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