pass logsDir and webrootPath to default store

This commit is contained in:
AJ ONeal 2018-06-14 20:11:56 -06:00
parent b01bd20124
commit 4c4c5bb2d8
1 changed files with 10 additions and 2 deletions

View File

@ -72,7 +72,12 @@ Greenlock._undefine = function (gl) {
Greenlock.create = function (gl) {
var PromiseA = require('bluebird');
gl.store = gl.store || require('le-store-certbot').create({ debug: gl.debug });
gl.store = gl.store || require('le-store-certbot').create({
debug: gl.debug
, configDir: gl.configDir
, logsDir: gl.logsDir
, webrootPath: gl.webrootPath
});
gl.core = require('./lib/core');
var log = gl.log || _log;
@ -80,7 +85,10 @@ Greenlock.create = function (gl) {
gl.challenges = {};
}
if (!gl.challenges['http-01']) {
gl.challenges['http-01'] = require('le-challenge-fs').create({ debug: gl.debug });
gl.challenges['http-01'] = require('le-challenge-fs').create({
debug: gl.debug
, webrootPath: gl.webrootPath
});
}
if (!gl.challenges['dns-01']) {
try {