2016-06-18 13:42:09 +00:00
|
|
|
import * as beautylog from "beautylog";
|
|
|
|
import * as path from "path";
|
|
|
|
import * as smartfile from "smartfile";
|
2016-06-21 18:02:57 +00:00
|
|
|
let fs = require("fs-extra");
|
2016-06-18 13:42:09 +00:00
|
|
|
beautylog.info("installing letsencrypt.sh locally...");
|
2016-06-21 18:02:57 +00:00
|
|
|
|
|
|
|
fs.ensureDir(path.join(__dirname,"assets/"));
|
2016-06-18 13:42:09 +00:00
|
|
|
smartfile.remote.toFs(
|
|
|
|
"https://raw.githubusercontent.com/lukas2511/letsencrypt.sh/master/letsencrypt.sh",
|
|
|
|
path.join(__dirname,"assets/","le.sh")
|
|
|
|
).then(() => {
|
|
|
|
beautylog.success("Done!");
|
|
|
|
});
|