mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: set SSH path to permission 700
This commit is contained in:
parent
576ff02773
commit
ca0acf0445
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user