mirror of
https://github.com/logos-storage/logos-storage-installer.git
synced 2026-01-02 13:33:11 +00:00
Fixes persmission issue for eth.key on windows
This commit is contained in:
parent
79faa827af
commit
29997f6009
@ -34,6 +34,8 @@ export class EthersService {
|
||||
const username = this.os.getUsername();
|
||||
this.shell.run(`icacls ${paths.key} /inheritance:r >nul 2>&1`);
|
||||
this.shell.run(`icacls ${paths.key} /grant:r ${username}:F >nul 2>&1`);
|
||||
this.shell.run(`icacls ${paths.key} /remove SYSTEM >nul 2>&1`);
|
||||
this.shell.run(`icacls ${paths.key} /remove Administrators >nul 2>&1`);
|
||||
} else {
|
||||
this.shell.run(`chmod 600 "${paths.key}"`);
|
||||
}
|
||||
|
||||
@ -61,7 +61,7 @@ export class MainMenu {
|
||||
action: this.stopCodex,
|
||||
},
|
||||
{
|
||||
label: "Exit",
|
||||
label: "Exit (Codex keeps running)",
|
||||
action: this.loop.stopLoop,
|
||||
},
|
||||
]);
|
||||
|
||||
@ -110,7 +110,7 @@ describe("mainmenu", () => {
|
||||
[
|
||||
{ label: "Open Codex app", action: mockCodexApp.openCodexApp },
|
||||
{ label: "Stop Codex", action: mainmenu.stopCodex },
|
||||
{ label: "Exit", action: mockMenuLoop.stopLoop },
|
||||
{ label: "Exit (Codex keeps running)", action: mockMenuLoop.stopLoop },
|
||||
],
|
||||
);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user