mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fixed web site no localstorage, MongoDB backup with URL.
This commit is contained in:
parent
e9ebb8aa20
commit
90b060016c
3 changed files with 35 additions and 25 deletions
|
@ -1230,7 +1230,7 @@ function createMeshCore(agent) {
|
|||
var bash = fs.existsSync('/bin/bash') ? '/bin/bash' : false;
|
||||
var sh = fs.existsSync('/bin/sh') ? '/bin/sh' : false;
|
||||
var script = false;
|
||||
if (this.httprequest.xoptions.script)
|
||||
if (this.httprequest.xoptions && this.httprequest.xoptions.script)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -1244,7 +1244,7 @@ function createMeshCore(agent) {
|
|||
}
|
||||
} catch (ex) { }
|
||||
}
|
||||
var python = (this.httprequest.xoptions.python && fs.existsSync('/usr/bin/python')) ? '/usr/bin/python' : false;
|
||||
var python = (this.httprequest.xoptions && this.httprequest.xoptions.python && fs.existsSync('/usr/bin/python')) ? '/usr/bin/python' : false;
|
||||
var shell = bash || sh;
|
||||
|
||||
var env = { HISTCONTROL: 'ignoreboth', TERM: 'xterm' };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue