From f3bae8580bec59b633946a82faa90a0d8e05c393 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 17 Aug 2019 21:24:18 -0600 Subject: [PATCH] v2.7.13: add igg banner --- package.json | 6 ++++-- scripts/postinstall | 26 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100755 scripts/postinstall diff --git a/package.json b/package.json index 2091993..5572441 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "greenlock-express", - "version": "2.7.12", + "version": "2.7.13", "description": "Free SSL and managed or automatic HTTPS for node.js with Express, Koa, Connect, Hapi, and all other middleware systems.", "main": "index.js", "homepage": "https://greenlock.domains", @@ -12,7 +12,8 @@ "redirect-https": "^1.1.5" }, "files": [ - "lib" + "lib", + "scripts" ], "trulyOptionalDependencies": { "spdy": "^3.4.7" @@ -28,6 +29,7 @@ }, "scripts": { "start": "node server.js ./config.js", + "postinstall": "node scripts/postinstall", "test": "node test/greenlock.js" }, "repository": { diff --git a/scripts/postinstall b/scripts/postinstall new file mode 100755 index 0000000..031f5c0 --- /dev/null +++ b/scripts/postinstall @@ -0,0 +1,26 @@ +#!/usr/bin/env node +'use strict'; + +// BG WH \u001b[47m +// BOLD \u001b[1m +// RED \u001b[31m +// GREEN \u001b[32m +// RESET \u001b[0m + +[ '', + '\u001b[31m===============================\u001b[0m', + '\u001b[31m==\u001b[0m Do you rely on Greenlock? \u001b[31m==\u001b[0m', + '\u001b[31m===============================\u001b[0m', + '', + "Hey! Let's Encrypt will \u001b[31mSTOP WORKING\u001b[0m with Greenlock v2 at the end of October,", + "and \u001b[31mWITHOUT YOUR HELP\u001b[0m we won't get the next release out in time.", + '', + "If Greenlock has saved you time and money, and taken stress out of your life,", + "or you just love it, please reach out to return the favor today:", + '', + '\u001b[31mSAVE GREENLOCK:\u001b[0m', + 'https://indiegogo.com/at/greenlock', + '' +].forEach(function (line) { + console.info(line); +});