filemanager: fix mounting of filesystem and mountpoint backends

This commit is contained in:
Girish Ramakrishnan
2021-12-24 10:43:39 -08:00
parent 66fd05ce47
commit 5e9a46d71e
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -566,7 +566,7 @@ async function userSearchSftp(req, res, next) {
const obj = {
dn: ldap.parseDN(`cn=${username}@${appFqdn},ou=sftp,dc=cloudron`).toString(),
attributes: {
homeDirectory: app.dataDir ? `/mnt/${app.id}` : `/mnt/appsdata/${app.id}/data`,
homeDirectory: app.dataDir ? `/mnt/app-${app.id}` : `/mnt/appsdata/${app.id}/data`, // see also sftp.js
objectclass: ['user'],
objectcategory: 'person',
cn: user.id,