1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

1. Updated so passthru parameters are passed thru installer

2. Updated so if run from SSH/Terminal, text mode will run as default, instead of appearing hung or displaying timeout.
This commit is contained in:
Bryan Roe 2022-09-01 11:03:00 -07:00
parent 32b194fa50
commit e704614320

View file

@ -156,7 +156,7 @@ if (process.argv.includes('-translations'))
console.log(JSON.stringify(translation));
process.exit();
}
if (process.argv.includes('-help'))
if (process.argv.includes('-help') || (process.platform == 'linux' && process.env['XAUTHORITY']==null && process.env['DISPLAY'] == null))
{
console.log("\n" + translation[lang].commands + ": ");
if ((msh.InstallFlags & 1) == 1)
@ -221,8 +221,8 @@ if ((!skip) && ((msh.InstallFlags & 2) == 2))
}
}
if (!skip)
{
if (!skip)
{
if (process.platform != 'darwin')
{
if (process.argv.includes('-install') || process.argv.includes('-update'))
@ -234,6 +234,10 @@ if (!skip)
{
p.push('--installPath="' + process.argv[i].split('=').pop() + '"');
}
else if(process.argv[i].startsWith('--'))
{
p.push(process.argv[i]);
}
}
_install(p);
process.exit();