From 2d39b3df8893cd256257fe1f32ca6b0485a90dcf Mon Sep 17 00:00:00 2001 From: Richard van Dijk Date: Sun, 17 Apr 2016 23:44:01 +0200 Subject: [PATCH 1/2] 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 752e8d7..d55ab3b 100755 --- a/acme.sh +++ b/acme.sh @@ -762,17 +762,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" From db0534ed970f9ca27ce13eb22323cdc511ab0ad3 Mon Sep 17 00:00:00 2001 From: neil Date: Mon, 18 Apr 2016 21:33:21 +0800 Subject: [PATCH 2/2] fix bug, uninstall env --- acme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index d55ab3b..66ea5c9 100755 --- a/acme.sh +++ b/acme.sh @@ -1886,7 +1886,7 @@ uninstall() { _profile="$(_detect_profile)" if [ "$_profile" ] ; then text="$(cat $_profile)" - echo "$text" | sed "s|^source.*$PROJECT_NAME.env.*$||" > "$_profile" + echo "$text" | sed "s|^[.] \"$LE_WORKING_DIR/$PROJECT_NAME.env\"$||" > "$_profile" fi rm -f $LE_WORKING_DIR/$PROJECT_ENTRY