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