/[smecontribs]/rpms/smeserver-nextcloud/contribs9/smeserver-nextcloud-1.1.0-bz10557-ibays_folder.patch
ViewVC logotype

Annotation of /rpms/smeserver-nextcloud/contribs9/smeserver-nextcloud-1.1.0-bz10557-ibays_folder.patch

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


Revision 1.1 - (hide annotations) (download)
Mon Apr 9 02:05:21 2018 UTC (6 years, 6 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-nextcloud-1_1_0-19_el6_sme, smeserver-nextcloud-1_1_0-13_el6_sme, smeserver-nextcloud-1_1_0-10_el6_sme, smeserver-nextcloud-1_1_0-15_el6_sme, smeserver-nextcloud-1_1_0-8_el6_sme, smeserver-nextcloud-1_1_0-17_el6_sme, smeserver-nextcloud-1_1_0-14_el6_sme, smeserver-nextcloud-1_1_0-20_el6_sme, smeserver-nextcloud-1_1_0-18_el6_sme, smeserver-nextcloud-1_1_0-6_el6_sme, smeserver-nextcloud-1_1_0-4_el6_sme, smeserver-nextcloud-1_1_0-11_el6_sme, smeserver-nextcloud-1_1_0-21_el6_sme, smeserver-nextcloud-1_1_0-12_el6_sme, smeserver-nextcloud-1_1_0-9_el6_sme, smeserver-nextcloud-1_1_0-16_el6_sme, smeserver-nextcloud-1_1_0-5_el6_sme, smeserver-nextcloud-1_1_0-7_el6_sme, HEAD
* Sun Apr 08 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-4.sme
- fix wrong logrotate option [SME: 10560]
- change password storage mode for smb share to allow access from portable devices [SME: 10558]
- create the "ibays" main folder to mount all ibays in every user nextcloud space [SME: 10557]
- add Shared folders in nextcloud under the ibays folder [SME: 10559]

1 jpp 1.1 diff -Nur smeserver-nextcloud-1.1.0.old/root/etc/e-smith/events/actions/nextcloud-occ-conf smeserver-nextcloud-1.1.0/root/etc/e-smith/events/actions/nextcloud-occ-conf
2     --- smeserver-nextcloud-1.1.0.old/root/etc/e-smith/events/actions/nextcloud-occ-conf 2018-04-08 21:56:59.210000000 -0400
3     +++ smeserver-nextcloud-1.1.0/root/etc/e-smith/events/actions/nextcloud-occ-conf 2018-04-08 22:02:23.304000000 -0400
4     @@ -202,14 +202,23 @@
5    
6    
7     # now we could mount home folder for each user using samba
8     -if ($status eq "enabled") {
9     - foreach (@users) {
10     +foreach (@users) {
11     my $key = $_->key;
12     my $id = "";
13     my $user = $NCusers{$key};
14     # in case user not already know by NC, skip
15     # normally not necessary, thanks to LDAP!!
16     next if ($user eq "");
17     + # let's create the root "ibays" folder to mount every ibays in nextcloud user space
18     + my ($login,$pass,$uid,$gid) = getpwnam("www");
19     + my $idir = "/home/e-smith/files/nextcloud/data/$user";
20     + unless ( !-d $idir || !-d "$idir/files" || -d "$idir/files/ibays")
21     + {
22     + mkdir "$idir/files/ibays", 0770;
23     + chown $uid, $gid,"$idir/files/ibays";
24     + }
25     + # we proceed next only if we want the user homes
26     + next unless ($status eq "enabled");
27     # get existing mount
28     %localmounts = listLocalMounts;
29     # search for our current one
30     @@ -241,7 +250,6 @@
31     }
32     push @idOK,$id;
33    
34     - }
35     }
36    
37     # set cron

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