refactor: set SSH path to permission 700

This commit is contained in:
Mauricio Siu 2024-07-27 10:11:46 -06:00
parent 576ff02773
commit ca0acf0445

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);