mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 04:33:16 +03:00
Synced changes for silent install, with agent repo
This commit is contained in:
parent
72e64506e1
commit
2b04eebcab
@ -221,8 +221,6 @@ if ((!skip) && ((msh.InstallFlags & 2) == 2))
|
||||
}
|
||||
|
||||
if (!skip)
|
||||
{
|
||||
if (process.platform != 'darwin')
|
||||
{
|
||||
if (process.argv.includes('-install') || process.argv.includes('-update'))
|
||||
{
|
||||
@ -274,8 +272,7 @@ if ((!skip) && ((msh.InstallFlags & 2) == 2))
|
||||
process.exit();
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
if (process.platform == 'darwin')
|
||||
{
|
||||
if (!require('user-sessions').isRoot()) { console.log('\n' + translation[lang].elevation); process.exit(); }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user