/[smeserver]/rpms/e-smith-ibays/sme10/e-smith-ibays-2.6.0-create_sess_folder_in_ibays.patch
ViewVC logotype

Diff of /rpms/e-smith-ibays/sme10/e-smith-ibays-2.6.0-create_sess_folder_in_ibays.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by unnilennium, Thu Jun 23 07:27:20 2016 UTC Revision 1.2 by unnilennium, Sun Jun 26 16:30:04 2016 UTC
# Line 2  diff -Nur e-smith-ibays-2.6.0.old/root/e Line 2  diff -Nur e-smith-ibays-2.6.0.old/root/e
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"
# Line 17  diff -Nur e-smith-ibays-2.6.0.old/root/e Line 17  diff -Nur e-smith-ibays-2.6.0.old/root/e
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);
# Line 34  diff -Nur e-smith-ibays-2.6.0.old/root/e Line 34  diff -Nur e-smith-ibays-2.6.0.old/root/e
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 @@
# Line 50  diff -Nur e-smith-ibays-2.6.0.old/root/e Line 50  diff -Nur e-smith-ibays-2.6.0.old/root/e
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  


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed