This commit is contained in:
AJ ONeal 2018-05-12 18:35:28 -06:00
parent e064df8a38
commit c81d965c71
2 changed files with 5 additions and 4 deletions

View File

@ -5,6 +5,7 @@ var mkdirpAsync = PromiseA.promisify(require('mkdirp'));
var path = require('path');
var fs = PromiseA.promisifyAll(require('fs'));
var sfs = require('safe-replace');
var os = require('os');
function log(debug) {
if (debug) {
@ -100,9 +101,9 @@ function pyToJson(pyobj) {
}
var defaults = {
configDir: [ '~', 'letsencrypt', 'etc' ].join(path.sep) // /etc/letsencrypt/
, logsDir: [ '~', 'letsencrypt', 'var', 'log' ].join(path.sep) // /var/log/letsencrypt/
, workDir: [ '~', 'letsencrypt', 'var', 'lib' ].join(path.sep) // /var/lib/letsencrypt/
configDir: [ os.homedir(), 'letsencrypt', 'etc' ].join(path.sep) // /etc/letsencrypt/
, logsDir: [ os.homedir(), 'letsencrypt', 'var', 'log' ].join(path.sep) // /var/log/letsencrypt/
, workDir: [ os.homedir(), 'letsencrypt', 'var', 'lib' ].join(path.sep) // /var/lib/letsencrypt/
, accountsDir: [ ':configDir', 'accounts', ':serverDir' ].join(path.sep)
, renewalPath: [ ':configDir', 'renewal', ':hostname.conf' ].join(path.sep)

View File

@ -1,6 +1,6 @@
{
"name": "le-store-certbot",
"version": "2.0.3",
"version": "2.0.5",
"description": "The \"certbot\" storage strategy for node-letsencrypt",
"main": "index.js",
"scripts": {