v4.0.2: resolve config file when running out of project directory
This commit is contained in:
parent
8ab7ad25f2
commit
6df8692385
|
@ -125,7 +125,10 @@ Init._init = function(opts) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//var mkdirp = promisify(require("@root/mkdirp"));
|
//var mkdirp = promisify(require("@root/mkdirp"));
|
||||||
opts.configFile = path.join(opts.configDir, 'config.json');
|
opts.configFile = path.join(
|
||||||
|
path.resolve(opts.packageRoot, opts.configDir),
|
||||||
|
'config.json'
|
||||||
|
);
|
||||||
var config;
|
var config;
|
||||||
try {
|
try {
|
||||||
config = JSON.parse(fs.readFileSync(opts.configFile));
|
config = JSON.parse(fs.readFileSync(opts.configFile));
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@root/greenlock",
|
"name": "@root/greenlock",
|
||||||
"version": "4.0.1",
|
"version": "4.0.2",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@root/greenlock",
|
"name": "@root/greenlock",
|
||||||
"version": "4.0.1",
|
"version": "4.0.2",
|
||||||
"description": "The easiest Let's Encrypt client for Node.js and Browsers",
|
"description": "The easiest Let's Encrypt client for Node.js and Browsers",
|
||||||
"homepage": "https://rootprojects.org/greenlock/",
|
"homepage": "https://rootprojects.org/greenlock/",
|
||||||
"main": "greenlock.js",
|
"main": "greenlock.js",
|
||||||
|
|
Loading…
Reference in New Issue