From a79b26af6cc3b6419e4eca3bed73147105a218a4 Mon Sep 17 00:00:00 2001 From: Richard van Dijk Date: Mon, 18 Apr 2016 02:37:35 +0200 Subject: [PATCH] fix renewAll bug $CERT_HOME is required by renewAll, but wasn't initialized. --- acme.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/acme.sh b/acme.sh index 001ef04..303da6f 100755 --- a/acme.sh +++ b/acme.sh @@ -824,17 +824,17 @@ _initpath() { ACCOUNT_KEY_PATH="$_DEFAULT_ACCOUNT_KEY_PATH" fi + _DEFAULT_CERT_HOME="$LE_WORKING_DIR" + if [ -z "$CERT_HOME" ] ; then + CERT_HOME="$_DEFAULT_CERT_HOME" + fi + domain="$1" if [ -z "$domain" ] ; then return 0 fi - _DEFAULT_CERT_HOME="$LE_WORKING_DIR" - if [ -z "$CERT_HOME" ] ; then - CERT_HOME="$_DEFAULT_CERT_HOME" - fi - domainhome="$CERT_HOME/$domain" mkdir -p "$domainhome"