From 4b853d3c1e86ae11cb5f4184d2adfa00f358bb18 Mon Sep 17 00:00:00 2001 From: neil Date: Mon, 11 Jan 2016 20:39:25 +0800 Subject: [PATCH] minor support to specify API --- le.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/le.sh b/le.sh index d2c15e2f..16d24b56 100755 --- a/le.sh +++ b/le.sh @@ -5,8 +5,14 @@ PROJECT="https://github.com/Neilpang/le" DEFAULT_CA="https://acme-v01.api.letsencrypt.org" DEFAULT_AGREEMENT="https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf" -API="$DEFAULT_CA" -AGREEMENT="$DEFAULT_AGREEMENT" + +if [ -z "$API" ] ; then + API="$DEFAULT_CA" +fi + +if [ -z "$AGREEMENT" ] ; then + AGREEMENT="$DEFAULT_AGREEMENT" +fi _debug() {