From 79ec7fb245bcd943336b0f2e9ad6148a7a3b9deb Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sun, 20 Jun 2021 23:29:24 -0700 Subject: [PATCH] volumes: make sshfs work --- src/mounts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mounts.js b/src/mounts.js index 30abd1f51..6569c7b0e 100644 --- a/src/mounts.js +++ b/src/mounts.js @@ -82,11 +82,11 @@ function renderMountFile(volume) { const keyFilePath = path.join(paths.SSHFS_KEYS_DIR, `id_rsa_${mountOptions.host}`); safe.fs.mkdirSync(paths.SSHFS_KEYS_DIR); - if (!safe.fs.writeFileSync(keyFilePath, mountOptions.privateKey, { mode: 0o600 })) throw new BoxError(BoxError.FS_ERROR, safe.error); + if (!safe.fs.writeFileSync(keyFilePath, `${mountOptions.privateKey}\n`, { mode: 0o600 })) throw new BoxError(BoxError.FS_ERROR, safe.error); type = 'fuse.sshfs'; what= `${mountOptions.user}@${mountOptions.host}:${mountOptions.remoteDir}`; - options = `defaults,allow_other,port=${mountOptions.port},IdentityFile=${keyFilePath},reconnect,uid=yellowtent,gid=yellowtent`; + options = `allow_other,port=${mountOptions.port},IdentityFile=${keyFilePath},reconnect`; break; } case 'noop': // volume provider