install step now working

This commit is contained in:
2016-06-21 20:02:57 +02:00
parent 5e10df8e5a
commit 1cdcd332d4
10 changed files with 1087 additions and 8 deletions

View File

@ -11,7 +11,7 @@ export class Cert {
cfEmail:string,
cfKey:string,
sslDir:string,
gitOriginRepo:string
gitOriginRepo?:string
}){
this.cfEmail = optionsArg.cfEmail;
this.cfKey = optionsArg.cfKey;
@ -22,6 +22,9 @@ export class Cert {
}
export class Certificate {
domainName:string;
creationDate:Date;
expiryDate:Date;
constructor(){
};

View File

@ -1,7 +1,10 @@
import * as beautylog from "beautylog";
import * as path from "path";
import * as smartfile from "smartfile";
let fs = require("fs-extra");
beautylog.info("installing letsencrypt.sh locally...");
fs.ensureDir(path.join(__dirname,"assets/"));
smartfile.remote.toFs(
"https://raw.githubusercontent.com/lukas2511/letsencrypt.sh/master/letsencrypt.sh",
path.join(__dirname,"assets/","le.sh")