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 {
|
try {
|
||||||
createDirectoryIfNotExist(dir);
|
createDirectoryIfNotExist(dir);
|
||||||
if (dir === SSH_PATH) {
|
if (dir === SSH_PATH) {
|
||||||
/* Changing SSH Keys permission to 600 keeping the SSH folder writable */
|
chmodSync(SSH_PATH, "700");
|
||||||
spawnSync("find", [
|
|
||||||
SSH_PATH,
|
|
||||||
"-type",
|
|
||||||
"f",
|
|
||||||
"-exec",
|
|
||||||
"chmod",
|
|
||||||
"600",
|
|
||||||
"{}",
|
|
||||||
";",
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error, " On path: ", dir);
|
console.log(error, " On path: ", dir);
|
||||||
|
Loading…
Reference in New Issue
Block a user