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-11 21:14:51.527000000 -0400 |
3 |
|
|
+++ smeserver-nextcloud-1.1.0/root/etc/e-smith/events/actions/nextcloud-occ-conf 2018-04-11 21:15:14.489000000 -0400 |
4 |
|
|
@@ -159,7 +159,7 @@ |
5 |
|
|
my @uUsers ; |
6 |
|
|
for (@Users) { push @uUsers, $NCusers{$_}; } ; |
7 |
|
|
# next if includeI not empty and if not in includeI |
8 |
|
|
- next if (scalar(@incI) > 0 && grep(/^$key$/i, @incI) ); |
9 |
|
|
+ next unless (scalar(@incI) == 0 || grep(/^$key$/i, @incI) ); |
10 |
|
|
# next if in excludeI |
11 |
|
|
next if (grep(/^$key$/i, @excI) ); |
12 |
|
|
|
13 |
|
|
@@ -246,7 +246,9 @@ |
14 |
|
|
# we do this on every turn in case it was wrong |
15 |
|
|
chown $uid, $gid,"$idir/files/ibays"; |
16 |
|
|
chmod 0770, "$idir/files/ibays"; |
17 |
|
|
- OCC "files:scan $user --quiet"; |
18 |
|
|
+ # added --unscanned to avoid to hang on large quantity of file when discovering the newly created ibays folder |
19 |
|
|
+ # if not enough could add --path $idir/files/ibays |
20 |
|
|
+ OCC "files:scan $user --quiet --unscanned"; |
21 |
|
|
# we proceed next only if we want the user homes |
22 |
|
|
next unless ($status eq "enabled"); |
23 |
|
|
# get existing mount |