create sshfs dir in start.sh

This commit is contained in:
Girish Ramakrishnan
2022-03-29 20:13:41 -07:00
parent 3f633c9779
commit cbc44da102
2 changed files with 2 additions and 2 deletions

View File

@@ -184,7 +184,6 @@ async function tryAddMount(mount, options) {
if (mount.mountType === 'sshfs') {
const keyFilePath = path.join(paths.SSHFS_KEYS_DIR, `id_rsa_${mount.mountOptions.host}`);
safe.fs.mkdirSync(paths.SSHFS_KEYS_DIR);
if (!safe.fs.writeFileSync(keyFilePath, `${mount.mountOptions.privateKey}\n`, { mode: 0o600 })) throw new BoxError(BoxError.FS_ERROR, safe.error);
}