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:51:38.033000000 -0400 |
3 |
+++ smeserver-nextcloud-1.1.0/root/etc/e-smith/events/actions/nextcloud-occ-conf 2018-04-08 21:53:30.887000000 -0400 |
4 |
@@ -156,7 +156,7 @@ |
5 |
if (scalar(@matching_keys) == 0) { |
6 |
#if none create |
7 |
if ($storage eq "smb") { |
8 |
- $id = OCCr "files_external:create -c share=$key -c host=localhost 'ibays/$key' smb password::sessioncredentials --output json"; |
9 |
+ $id = OCCr "files_external:create -c share=$key -c host=localhost 'ibays/$key' smb password::logincredentials --output json"; |
10 |
} else { |
11 |
$id = OCCr "files_external:create -c datadir=/home/e-smith/files/ibays/$key 'ibays/$key' local null::null --output json"; |
12 |
} |
13 |
@@ -215,7 +215,7 @@ |
14 |
# if none create |
15 |
if (scalar(@matching_keys) == 0) { |
16 |
#if none create |
17 |
- $id = OCCr "files_external:create -c share=$key -c host=localhost '$key' smb password::sessioncredentials --output json"; |
18 |
+ $id = OCCr "files_external:create -c share=$key -c host=localhost '$key' smb password::logincredentials --output json"; |
19 |
OCC "files_external:applicable --add-user $user $id"; |
20 |
push @idOK,$id; |
21 |
print "created home dir for $key $user\n"; |