Compare commits
2 Commits
03fdbe157a
...
3f93292c9a
Author | SHA1 | Date |
---|---|---|
AJ ONeal | 3f93292c9a | |
AJ ONeal | 4708eabe84 |
8
index.js
8
index.js
|
@ -280,13 +280,17 @@ module.exports.create = function (configs) {
|
|||
var bundleArchive = path.join(archiveDir, 'bundle' + checkpoints + '.pem');
|
||||
|
||||
return mkdirpAsync(archiveDir).then(function () {
|
||||
return PromiseA.all([
|
||||
var ps = PromiseA.all([
|
||||
sfs.writeFileAsync(certArchive, pems.cert, 'ascii')
|
||||
, sfs.writeFileAsync(chainArchive, pems.chain, 'ascii')
|
||||
, sfs.writeFileAsync(fullchainArchive, [ pems.cert, pems.chain ].join('\n'), 'ascii')
|
||||
, sfs.writeFileAsync(privkeyArchive, pems.privkey, 'ascii')
|
||||
, sfs.writeFileAsync(bundleArchive, pems.bundle, 'ascii')
|
||||
]);
|
||||
if (pems.bundle) {
|
||||
var bundleP = sfs.writeFileAsync(bundleArchive, pems.bundle, 'ascii');
|
||||
ps.push(bundleP);
|
||||
}
|
||||
return ps;
|
||||
}).then(function () {
|
||||
return mkdirpAsync(liveDir);
|
||||
}).then(function () {
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"description": "The \"certbot\" storage strategy for Greenlock.js",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"bump": "npm version -m \"chore(release): bump to v%s\"",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
|
|
Loading…
Reference in New Issue