mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-06 11:18:06 -05:00
Added root check for macOS
This commit is contained in:
parent
bb082668d7
commit
2d18ba76cc
@ -95,6 +95,10 @@ if (process.platform != 'darwin')
|
|||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (!require('user-sessions').isRoot()) { console.log('\n' + "This utility requires elevated permissions. Please try again with sudo."); process.exit(); }
|
||||||
|
}
|
||||||
|
|
||||||
if (!s)
|
if (!s)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user