mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
More work on integrating the script-task.
This commit is contained in:
parent
3aca17ea6d
commit
1b67b84369
10 changed files with 2120 additions and 14 deletions
|
@ -33,6 +33,7 @@ function CreateMeshCentralServer(config, args) {
|
|||
obj.amtScanner = null;
|
||||
obj.amtManager = null;
|
||||
obj.meshScanner = null;
|
||||
obj.taskManager = null;
|
||||
obj.letsencrypt = null;
|
||||
obj.eventsDispatch = {};
|
||||
obj.fs = require('fs');
|
||||
|
@ -1497,6 +1498,11 @@ function CreateMeshCentralServer(config, args) {
|
|||
return;
|
||||
}
|
||||
|
||||
// Setup the task manager
|
||||
if ((obj.config) && (obj.config.settings) && (obj.config.settings.taskmanager == true)) {
|
||||
obj.taskManager = require('./taskmanager').createTaskManager(obj);
|
||||
}
|
||||
|
||||
// Start plugin manager if configuration allows this.
|
||||
if ((obj.config) && (obj.config.settings) && (obj.config.settings.plugins != null) && (obj.config.settings.plugins != false) && ((typeof obj.config.settings.plugins != 'object') || (obj.config.settings.plugins.enabled != false))) {
|
||||
obj.pluginHandler = require('./pluginHandler.js').pluginHandler(obj);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue