Only if plugins are enabled, add semver module
Ryan Blenis committed
Jan 4, 2020 at 13:49 UTC
e123bb973508ad2a201f845e895c2341ba8aa065
1 file changed
+1
meshcentral.js
+1
@@ -2178,6 +2178,7 @@ function mainStart() {
2178
if (config.settings.mqtt != null) { modules.push('aedes'); } // Add MQTT Modules
2179
if (config.settings.mongodb != null) { modules.push('mongodb'); } // Add MongoDB, official driver.
2180
if (config.settings.vault != null) { modules.push('node-vault'); } // Add official HashiCorp's Vault module.
2181
+ if (config.settings.plugins != null) { modules.push('semver'); } // Required for version compat testing and update checks
2182
if ((config.settings.plugins != null) && (config.settings.plugins.proxy != null)) { modules.push('https-proxy-agent'); } // Required for HTTP/HTTPS proxy support
2183
else if (config.settings.xmongodb != null) { modules.push('mongojs'); } // Add MongoJS, old driver.
2184
if (config.smtp != null) { modules.push('nodemailer'); } // Add SMTP support