fix: Permission issues

This commit is contained in:
Andras Bacsai
2022-04-05 17:37:03 +02:00
parent 09841ad4cb
commit 4ba2205af4
2 changed files with 4 additions and 2 deletions

View File

@@ -68,6 +68,7 @@ export const post: RequestHandler = async (event) => {
} else {
await asyncExecShell(`echo "${decrypt(ftpHostKeyPrivate)}" > ${hostkeyDir}/${id}.rsa`);
}
await asyncExecShell(`chmod -R 600 ${hostkeyDir}`);
const { network, engine } = destinationDocker;
const host = getEngine(engine);
if (ftpEnabled) {