mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-10 14:09:43 -05:00
Plugin system improvements.
This commit is contained in:
@@ -1102,8 +1102,7 @@ function createMeshCore(agent) {
|
||||
if (fs.existsSync("/usr/bin/python") && fs.existsSync("/bin/bash")) {
|
||||
this.httprequest.process = childProcess.execFile("/usr/bin/python", [ "python", "-c", "import pty; pty.spawn([\"/bin/bash\"])" ]);
|
||||
if (process.platform == 'linux') { this.httprequest.process.stdin.write("export TERM='xterm'\nalias ls='ls --color=auto'\nclear\n"); }
|
||||
}
|
||||
else if (fs.existsSync("/bin/bash")) {
|
||||
} else if (fs.existsSync("/bin/bash")) {
|
||||
this.httprequest.process = childProcess.execFile("/bin/bash", ["bash", "-i"], { type: childProcess.SpawnTypes.TERM });
|
||||
if (process.platform == 'linux') { this.httprequest.process.stdin.write("alias ls='ls --color=auto'\nclear\n"); }
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user