/[smeserver]/rpms/e-smith-ibays/sme9/e-smith-ibays-2.4.0_addtmpfolder_to_ibays.patch
ViewVC logotype

Annotation of /rpms/e-smith-ibays/sme9/e-smith-ibays-2.4.0_addtmpfolder_to_ibays.patch

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


Revision 1.1 - (hide annotations) (download)
Thu May 8 07:20:20 2014 UTC (10 years, 5 months ago) by stephdl
Branch: MAIN
CVS Tags: e-smith-ibays-2_4_0-11_el6_sme
* Sat May 4 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-11.sme
- Add an upload_tmp_folder setting by db command [sme: 7011]
- Thanks to Michael McCarn and Jean-philippe Pialasse

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    

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