Revert "Fixed GreenLock install."
This reverts commit 013fb09d6c923b04d110e49be209489bd08a8082.
TotallyNotElite committed
Nov 6, 2019 at 19:13 UTC
d6d2077126686918a5198b55fa5deee72b4217ea
2 files changed
+2
-7
meshcentral.js
+1
-4
@@ -1949,9 +1949,6 @@ function InstallModule(modulename, func, tag1, tag2) {
1949
var child_process = require('child_process');
1950
var parentpath = __dirname;
1951
1952
- // Add module exact version number if needed
1953
- if (modulename == 'greenlock') { modulename = 'greenlock@2.8.8'; }
1954
-
1952
// Get the working directory
1953
if ((__dirname.endsWith('/node_modules/meshcentral')) || (__dirname.endsWith('\\node_modules\\meshcentral')) || (__dirname.endsWith('/node_modules/meshcentral/')) || (__dirname.endsWith('\\node_modules\\meshcentral\\'))) { parentpath = require('path').join(__dirname, '../..'); }
1954
@@ -2009,7 +2006,7 @@ function mainStart() {
2006
var modules = ['ws', 'cbor', 'nedb', 'https', 'yauzl', 'xmldom', 'ipcheck', 'express', 'archiver', 'multiparty', 'node-forge', 'express-ws', 'compression', 'body-parser', 'connect-redis', 'cookie-session', 'express-handlebars'];
2007
if (require('os').platform() == 'win32') { modules.push('node-windows'); if (sspi == true) { modules.push('node-sspi'); } } // Add Windows modules
2008
if (ldap == true) { modules.push('ldapauth-fork'); }
2012
- if (config.letsencrypt != null) { modules.push('greenlock'); modules.push('le-store-certbot'); modules.push('le-challenge-fs'); modules.push('le-acme-core'); } // Add Greenlock Modules
2009
+ if (config.letsencrypt != null) { modules.push('greenlock@2.8.8'); modules.push('le-store-certbot'); modules.push('le-challenge-fs'); modules.push('le-acme-core'); } // Add Greenlock Modules
2010
if (config.settings.mqtt != null) { modules.push('aedes'); } // Add MQTT Modules
2011
if (config.settings.mongodb != null) { modules.push('mongodb'); } // Add MongoDB, official driver.
2012
if (config.settings.vault != null) { modules.push('node-vault'); } // Add official HashiCorp's Vault module.
package.json
+1
-3
@@ -1,6 +1,6 @@
1
{
2
"name": "meshcentral",
3
- "version": "0.4.3-w",
3
+ "version": "0.4.3-v",
4
"keywords": [
5
"Remote Management",
6
"Intel AMT",
@@ -37,10 +37,8 @@
37
"express": "^4.17.0",
38
"express-handlebars": "^3.1.0",
39
"express-ws": "^4.0.0",
40
- "greenlock": "^2.8.8",
40
"html-minifier": "^4.0.0",
41
"ipcheck": "^0.1.0",
43
- "le-acme-core": "^2.1.4",
42
"meshcentral": "*",
43
"minify-js": "0.0.4",
44
"minimist": "^1.2.0",