mirror of
https://github.com/logos-storage/logos-storage-installer.git
synced 2026-01-05 23:13:06 +00:00
Merge 0484003a45a35664f7412efb1028d8697696c8cb into a67cf3031f7a702ea2ce0f702bd63a0471d83693
This commit is contained in:
commit
fe73104e1d
@ -191,21 +191,7 @@ async function performInstall(config) {
|
||||
const downloadCommand = 'curl -# --connect-timeout 10 --max-time 60 -L https://get.codex.storage/install.sh -o install.sh && chmod +x install.sh';
|
||||
await runCommand(downloadCommand);
|
||||
|
||||
if (platform === 'darwin') {
|
||||
const timeoutCommand = `perl -e '
|
||||
eval {
|
||||
local $SIG{ALRM} = sub { die "timeout\\n" };
|
||||
alarm(120);
|
||||
system("INSTALL_DIR=\\"${installPath}\\" bash install.sh");
|
||||
alarm(0);
|
||||
};
|
||||
die if $@;
|
||||
'`;
|
||||
await runCommand(timeoutCommand);
|
||||
} else {
|
||||
await runCommand(`INSTALL_DIR="${installPath}" timeout 120 bash install.sh`);
|
||||
}
|
||||
|
||||
await saveCodexExePath(config, path.join(installPath, "codex"));
|
||||
|
||||
} catch (error) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user