mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Synced changes for silent install, with agent repo
This commit is contained in:
parent
72e64506e1
commit
2b04eebcab
1 changed files with 14 additions and 17 deletions
|
@ -221,8 +221,6 @@ if ((!skip) && ((msh.InstallFlags & 2) == 2))
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!skip)
|
if (!skip)
|
||||||
{
|
|
||||||
if (process.platform != 'darwin')
|
|
||||||
{
|
{
|
||||||
if (process.argv.includes('-install') || process.argv.includes('-update'))
|
if (process.argv.includes('-install') || process.argv.includes('-update'))
|
||||||
{
|
{
|
||||||
|
@ -274,12 +272,11 @@ if ((!skip) && ((msh.InstallFlags & 2) == 2))
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
if (process.platform == 'darwin')
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if (!require('user-sessions').isRoot()) { console.log('\n' + translation[lang].elevation); process.exit(); }
|
if (!require('user-sessions').isRoot()) { console.log('\n' + translation[lang].elevation); process.exit(); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!skip)
|
if (!skip)
|
||||||
|
|
Loading…
Reference in a new issue