Merge branch 'feat/shared-ssh' of github.com:lorenzomigliorero/dokploy into feat/shared-ssh

This commit is contained in:
Lorenzo Migliorero 2024-07-27 19:57:16 +02:00
commit 9cf4a5e7a3
No known key found for this signature in database
GPG Key ID: 9A9F1AD60C05DFE2

View File

@ -34,17 +34,7 @@ export const setupDirectories = () => {
try {
createDirectoryIfNotExist(dir);
if (dir === SSH_PATH) {
/* Changing SSH Keys permission to 600 keeping the SSH folder writable */
spawnSync("find", [
SSH_PATH,
"-type",
"f",
"-exec",
"chmod",
"600",
"{}",
";",
]);
chmodSync(SSH_PATH, "700");
}
} catch (error) {
console.log(error, " On path: ", dir);