From 9cd4be8bf6e98303884bb2a54e3adc72de6f173f Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 16 Dec 2015 09:34:39 +0000 Subject: [PATCH] no backends --- examples/ursa.js | 2 +- index.js | 2 +- lib/letiny-core.js | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/ursa.js b/examples/ursa.js index 4a9feaf..519e8cd 100644 --- a/examples/ursa.js +++ b/examples/ursa.js @@ -11,7 +11,7 @@ config.le.server = LE.stagingServer; // // Manual Registration // -var le = LE.create(require('../backends/ursa'), config.le); +var le = LE.create(config.le); le.backend.registerAsync({ agreeTos: true , domains: ['example.com'] // CHANGE TO YOUR DOMAIN diff --git a/index.js b/index.js index 15e04fa..91e9284 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,7 @@ var PromiseA = require('bluebird'); var crypto = require('crypto'); var tls = require('tls'); var path = require('path'); -var leCore = require('./backends/letiny-core'); +var leCore = require('./lib/letiny-core'); var LE = module.exports; LE.productionServerUrl = leCore.productionServerUrl; diff --git a/lib/letiny-core.js b/lib/letiny-core.js index 05e13db..7930a5c 100644 --- a/lib/letiny-core.js +++ b/lib/letiny-core.js @@ -114,6 +114,7 @@ function getAccount(accountId, args, handlers) { if (!Object.keys(files).every(function (key) { return !files[key].error; })) { + // TODO log renewal.conf console.warn("Account '" + accountId + "' was currupt. No big deal (I think?). Creating a new one..."); return createAccount(args, handlers); }