From 48bcd7a10303e248b6d730268d52718b6b252d70 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 12 May 2018 22:03:06 -0600 Subject: [PATCH] update default tmp dirs --- README.md | 4 ++-- index.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2f547cb..145a719 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,8 @@ var leStore = require('le-store-certbot').create({ , certPath: ':configDir/live/:hostname/cert.pem' // will be templated as expected by , chainPath: ':configDir/live/:hostname/chain.pem' // greenlock.js -, workDir: require('homedir')() + '/acme/var/lib' -, logsDir: require('homedir')() + '/acme/var/log' +, workDir: require('homedir')() + '/tmp/acme/lib' +, logsDir: require('homedir')() + '/tmp/acme/log' , webrootPath: '~/acme/srv/www/:hostname/.well-known/acme-challenge' diff --git a/index.js b/index.js index 1580df1..58f88c9 100644 --- a/index.js +++ b/index.js @@ -102,9 +102,9 @@ function pyToJson(pyobj) { } var defaults = { - 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/ + configDir: [ os.homedir(), 'letsencrypt', 'etc' ].join(path.sep) // /etc/letsencrypt/ +, logsDir: [ os.homedir(), 'tmp', 'acme', 'log' ].join(path.sep) // /var/log/letsencrypt/ +, workDir: [ os.homedir(), 'tmp', 'acme', 'lib' ].join(path.sep) // /var/lib/letsencrypt/ , accountsDir: [ ':configDir', 'accounts', ':serverDir' ].join(path.sep) , renewalPath: [ ':configDir', 'renewal', ':hostname.conf' ].join(path.sep)